Add version labels
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2021-04-04 22:15:29 +02:00
parent 7cc95c8e85
commit 245ff0718a
1 changed files with 6 additions and 11 deletions

View File

@ -1,6 +1,4 @@
---
version: "3.8" version: "3.8"
services: services:
app: app:
image: hackmdio/hackmd:2.3.2 image: hackmdio/hackmd:2.3.2
@ -10,7 +8,7 @@ services:
- CMD_DB_USER=codimd - CMD_DB_USER=codimd
- CMD_DB_HOST=db - CMD_DB_HOST=db
- CMD_DB_PASSWORD_FILE=/run/secrets/db_password - CMD_DB_PASSWORD_FILE=/run/secrets/db_password
- CMD_EMAIL # Email login enabled? - CMD_EMAIL # Email login enabled?
depends_on: depends_on:
- db - db
networks: networks:
@ -38,13 +36,13 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" - "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.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- coop-cloud.${STACK_NAME}.app.version=2.3.2-40b5df94
healthcheck: healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost:3000"] test: ["CMD", "wget", "-qO", "-", "http://localhost:3000"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 10 retries: 10
start_period: 1m start_period: 1m
db: db:
image: postgres:11.11-alpine image: postgres:11.11-alpine
environment: environment:
@ -57,22 +55,19 @@ services:
- db_password - db_password
networks: networks:
- internal - internal
deploy:
labels: ['coop-cloud.${STACK_NAME}.db.version=11.11-alpine-5c163653']
volumes: volumes:
postgres: postgres:
codimd_uploads: codimd_uploads:
secrets: secrets:
db_password: db_password:
external: true external: true
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION} name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
networks: networks:
proxy: proxy:
external: true external: true
internal: internal:
configs: configs:
entrypoint_conf: entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION} name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}