Update docker-compose.yml

This commit is contained in:
MaxJa4 2022-01-30 01:20:54 +01:00 committed by GitHub
parent d7d37f9908
commit 6330d15ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,11 @@ services:
- ./.env - ./.env
networks: networks:
- default - default
healthcheck:
test: ["CMD-SHELL", "psql -U $$POSTGRES_USER -d $$POSTGRES_DB --list || exit 1"]
interval: 5s
timeout: 2s
retries: 5
web_recipes: web_recipes:
image: vabene1111/recipes image: vabene1111/recipes
@ -20,7 +25,8 @@ services:
- nginx_config:/opt/recipes/nginx/conf.d - nginx_config:/opt/recipes/nginx/conf.d
- ./mediafiles:/opt/recipes/mediafiles - ./mediafiles:/opt/recipes/mediafiles
depends_on: depends_on:
- db_recipes db_recipes:
condition: service_healthy
networks: networks:
- default - default
@ -51,4 +57,4 @@ networks:
volumes: volumes:
nginx_config: nginx_config:
staticfiles: staticfiles: