feat(HedgeDoc): Simplify docker-compose

This commit is contained in:
Simon 2021-07-22 17:36:35 +02:00
parent 1feb37bb62
commit 19956ef6c3
3 changed files with 5 additions and 14 deletions

View File

@ -6,7 +6,6 @@
La configuration est séparé en 3 fichiers :
- docker-compose.yml avec le service spécifique à HedgeDoc
- docker-compose.traefik.yml avec la configuration spécifique pour Traefik
- ../postgres/docker-compose.yml pour la partie base de donnée
## Configuration

View File

@ -1,13 +0,0 @@
version: "3.8"
networks:
default:
name: ${TRAEFIK_NETWORK_NAME:-traefik}
services:
hedgedoc:
labels:
- traefik.enable=true
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-hedgedoc}.rule=Host(`${HEDGEDOC_DOMAIN:?err}`)
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-hedgedoc}.entrypoints=web

View File

@ -24,3 +24,8 @@ services:
CMD_ALLOW_GRAVATAR: ${CMD_ALLOW_GRAVATAR:-true}
CMD_ALLOW_FREEURL: ${CMD_ALLOW_FREEURL:-false}
CMD_ALLOW_EMAIL_REGISTER: ${CMD_ALLOW_EMAIL_REGISTER:-true}
labels:
- traefik.enable=true
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-hedgedoc}.rule=Host(`${HEDGEDOC_DOMAIN:?err}`)
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-hedgedoc}.entrypoints=web