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

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 TYPE=gitea
STACK_NAME=gitea STACK_NAME=gitea
DOMAIN=git.exaple.com DOMAIN=git.example.com
LETS_ENCRYPT_ENV=production LETS_ENCRYPT_ENV=production
GITEA_DOMAIN=git.exaple.com GITEA_DOMAIN=git.example.com
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
GITEA_APP_NAME="Git with solidaritea" GITEA_APP_NAME="Git with solidaritea"
GITEA_AUTO_WATCH_NEW_REPOS=false GITEA_AUTO_WATCH_NEW_REPOS=false
@ -27,4 +27,4 @@ SECRET_SECRET_KEY_VERSION=v1 # length=64
# Email # Email
#GITEA_MAILER_HOST=mail.gandi.net:465 #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" version: "3.8"
services: services:
app: app:
image: "gitea/gitea:1.13.6" 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.rule=HostSNI(`*`)"
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh" - "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}" - "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: db:
image: "mariadb:10.5" image: "mariadb:10.5"
command: | command: |
@ -75,20 +72,16 @@ services:
networks: networks:
- internal - internal
deploy: deploy:
labels: labels: ['coop-cloud.${STACK_NAME}.db.version=10.5-9c681cef']
- "coop-cloud.${STACK_NAME}.db.version=${ABRA_TYPE_DB_VERSION}-${ABRA_TYPE_DB_DIGEST}"
networks: networks:
internal: internal:
proxy: proxy:
external: true external: true
configs: configs:
app_ini: app_ini:
name: ${STACK_NAME}_app_ini_${APP_INI_VERSION} name: ${STACK_NAME}_app_ini_${APP_INI_VERSION}
file: app.ini.tmpl file: app.ini.tmpl
template_driver: golang template_driver: golang
# Note(decentral1se): migrate from passwd -> password # Note(decentral1se): migrate from passwd -> password
# See https://git.autonomic.zone/coop-cloud/abra/pulls/33 # See https://git.autonomic.zone/coop-cloud/abra/pulls/33
secrets: secrets:
@ -110,7 +103,6 @@ secrets:
smtp_passwd: smtp_passwd:
name: ${STACK_NAME}_smtp_passwd_${SECRET_SMTP_PASSWORD_VERSION} name: ${STACK_NAME}_smtp_passwd_${SECRET_SMTP_PASSWORD_VERSION}
external: true external: true
volumes: volumes:
git: git:
mariadb: mariadb: