Auto-add service labels
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2021-04-04 13:26:39 +02:00
parent a69baa4af1
commit e8cdc222d6
1 changed files with 7 additions and 10 deletions

View File

@ -1,6 +1,4 @@
---
version: '3.8'
services:
app:
depends_on:
@ -41,11 +39,11 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- coop-cloud.${STACK_NAME}.app.version=3.5.4-3a37ee6b
db:
image: mongo:3.7
volumes:
- mongo:/data/db
- mongo:/data/db
secrets:
- db_root_password
environment:
@ -56,21 +54,20 @@ services:
- internal
labels:
- "traefik.enable=false"
deploy:
labels:
- coop-cloud.${STACK_NAME}.db.version=3.7-736eec20
volumes:
strapi:
mongo:
secrets:
db_root_password:
external: true
db_root_password:
external: true
name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION}
networks:
proxy:
external: true
internal:
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}