diff --git a/compose.yml b/compose.yml index 82aa66b..f538700 100644 --- a/compose.yml +++ b/compose.yml @@ -24,11 +24,6 @@ services: configs: - source: nginx_config target: /etc/nginx/nginx.conf - healthcheck: - test: curl -f http://app:9000/v1/api/ping || exit 1 - interval: 5s - timeout: 3s - retries: 20 deploy: restart_policy: condition: on-failure @@ -37,8 +32,6 @@ services: order: start-first rollback_config: order: start-first - restart_policy: - max_attempts: 10 labels: - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" @@ -92,13 +85,14 @@ services: db: image: postgres:10-alpine + entrypoint: "/docker-entrypoint.upgrade.sh" environment: - POSTGRES_USER=peertube - - POSTGRES_PASSWORD_FILE=/run/secrets/db_password - POSTGRES_DB=peertube + - POSTGRES_PASSWORD_FILE=/run/secrets/db_password configs: - source: db_entrypoint - target: /docker-entrypoint.sh + target: /docker-entrypoint.upgrade.sh mode: 0555 secrets: - db_password