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