generated from coop-cloud/example
Fix various compose syntax issues
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
768cc4aead
commit
26eb5887ba
12
compose.yml
12
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user