Auto-add service labels

This commit is contained in:
3wc
2021-04-04 18:04:28 +02:00
parent 733edf7ab8
commit 7536b3930e
2 changed files with 5 additions and 13 deletions
+2 -10
View File
@@ -1,6 +1,4 @@
---
version: "3.8"
services:
app:
image: "gitea/gitea:1.13.6"
@@ -56,8 +54,7 @@ services:
- "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
- "coop-cloud.${STACK_NAME}.app.version=${ABRA_TYPE_APP_VERSION}-${ABRA_TYPE_APP_DIGEST}"
- coop-cloud.${STACK_NAME}.app.version=1.13.6-1d90f984
db:
image: "mariadb:10.5"
command: |
@@ -75,20 +72,16 @@ services:
networks:
- internal
deploy:
labels:
- "coop-cloud.${STACK_NAME}.db.version=${ABRA_TYPE_DB_VERSION}-${ABRA_TYPE_DB_DIGEST}"
labels: ['coop-cloud.${STACK_NAME}.db.version=10.5-9c681cef']
networks:
internal:
proxy:
external: true
configs:
app_ini:
name: ${STACK_NAME}_app_ini_${APP_INI_VERSION}
file: app.ini.tmpl
template_driver: golang
# Note(decentral1se): migrate from passwd -> password
# See https://git.autonomic.zone/coop-cloud/abra/pulls/33
secrets:
@@ -110,7 +103,6 @@ secrets:
smtp_passwd:
name: ${STACK_NAME}_smtp_passwd_${SECRET_SMTP_PASSWORD_VERSION}
external: true
volumes:
git:
mariadb: