generated from admin/template
Курсовая пункты плана: 1-2-3-4
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user