Add EXTRA_DOMAINS, fix service name

See compose-stacks/organising#15
This commit is contained in:
3wc
2020-10-06 01:17:33 +02:00
parent 6cd30847ee
commit b589c2cde1
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
version: "3.8"
services:
codimd:
app:
image: nabo.codimd.dev/hackmdio/hackmd:2.1.0
environment:
- CMD_USECDN=false
@ -31,9 +31,8 @@ services:
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.${STACK_NAME}.tls=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"