Auto-add service labels
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
3wc 2021-04-04 18:03:12 +02:00
parent cb8e0a819b
commit 83165fd34c
2 changed files with 5 additions and 13 deletions

View File

@ -1,10 +1,10 @@
TYPE=gitea
STACK_NAME=gitea
DOMAIN=git.exaple.com
DOMAIN=git.example.com
LETS_ENCRYPT_ENV=production
GITEA_DOMAIN=git.exaple.com
GITEA_DOMAIN=git.example.com
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
GITEA_APP_NAME="Git with solidaritea"
GITEA_AUTO_WATCH_NEW_REPOS=false
@ -27,4 +27,4 @@ SECRET_SECRET_KEY_VERSION=v1 # length=64
# Email
#GITEA_MAILER_HOST=mail.gandi.net:465
#SECRET_SMTP_PASSWORD_VERSION=v1
SECRET_SMTP_PASSWORD_VERSION=v1

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: