fix docker-compose.yml

This commit is contained in:
MaKarin
2026-04-04 09:17:30 +03:00
parent f0fdd8bdde
commit df2797fe7d

View File

@@ -1,27 +1,26 @@
services: services:
postgres: postgres:
image: postgres:16 image: postgres:16
container_name: toir-light-postgres container_name: toir-light-postgres
restart: unless-stopped restart: unless-stopped
environment: environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change-me} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change-me}
POSTGRES_DB: ${POSTGRES_DB:-toir} POSTGRES_DB: ${POSTGRES_DB:-toir}
healthcheck: healthcheck:
test: test:
[ [
"CMD-SHELL", "CMD-SHELL",
"pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-toir}", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-toir}",
] ]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 10s start_period: 10s
volumes: volumes:
- postgres-data:/var/lib/postgresql/data - postgres-data:/var/lib/postgresql/data
networks: networks:
- toir-light - toir-light
server: server:
build: build: