Add version labels
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7cc95c8e85
commit
245ff0718a
17
compose.yml
17
compose.yml
|
@ -1,6 +1,4 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: hackmdio/hackmd:2.3.2
|
||||
|
@ -10,7 +8,7 @@ services:
|
|||
- CMD_DB_USER=codimd
|
||||
- CMD_DB_HOST=db
|
||||
- CMD_DB_PASSWORD_FILE=/run/secrets/db_password
|
||||
- CMD_EMAIL # Email login enabled?
|
||||
- CMD_EMAIL # Email login enabled?
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
|
@ -38,13 +36,13 @@ 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=2.3.2-40b5df94
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO", "-", "http://localhost:3000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
|
||||
db:
|
||||
image: postgres:11.11-alpine
|
||||
environment:
|
||||
|
@ -57,22 +55,19 @@ services:
|
|||
- db_password
|
||||
networks:
|
||||
- internal
|
||||
|
||||
|
||||
deploy:
|
||||
labels: ['coop-cloud.${STACK_NAME}.db.version=11.11-alpine-5c163653']
|
||||
volumes:
|
||||
postgres:
|
||||
codimd_uploads:
|
||||
|
||||
secrets:
|
||||
db_password:
|
||||
external: true
|
||||
db_password:
|
||||
external: true
|
||||
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
internal:
|
||||
|
||||
configs:
|
||||
entrypoint_conf:
|
||||
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
|
||||
|
|
Reference in New Issue