Курсовая пункты плана: 1-2-3-4

This commit is contained in:
Антон Беляев
2026-11-29 11:57:43 +03:00
parent 1b8c38fc7a
commit 08db638f96
18 changed files with 751 additions and 0 deletions
@@ -0,0 +1,27 @@
services:
db:
image: postgres:16
container_name: salon_is_db
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-salon}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change-me}
# Allows password connections from other machines on the LAN.
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
# Guarantees correct Russian text in the init script.
PGCLIENTENCODING: UTF8
TZ: Europe/Moscow
ports:
- "${DB_PORT:-5433}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./sql:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-salon}"]
interval: 5s
timeout: 3s
retries: 20
volumes:
pgdata: