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