From 1feb37bb621953eee27ce4eb79a2446099ca74e4 Mon Sep 17 00:00:00 2001 From: Simon C Date: Thu, 22 Jul 2021 17:30:40 +0200 Subject: [PATCH 1/3] feat(Traefik): Add docker-compose for default traefik network --- traefik/docker-compose.network.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 traefik/docker-compose.network.yml diff --git a/traefik/docker-compose.network.yml b/traefik/docker-compose.network.yml new file mode 100644 index 0000000..dd2f831 --- /dev/null +++ b/traefik/docker-compose.network.yml @@ -0,0 +1,5 @@ +version: "3.8" + +networks: + default: + name: ${TRAEFIK_NETWORK_NAME:-traefik} From 19956ef6c34293a93c8ce78ecb6ee5792bdc9d5f Mon Sep 17 00:00:00 2001 From: Simon C Date: Thu, 22 Jul 2021 17:36:35 +0200 Subject: [PATCH 2/3] feat(HedgeDoc): Simplify docker-compose --- hedgedoc/README.md | 1 - hedgedoc/docker-compose.traefik.yml | 13 ------------- hedgedoc/docker-compose.yml | 5 +++++ 3 files changed, 5 insertions(+), 14 deletions(-) delete mode 100644 hedgedoc/docker-compose.traefik.yml diff --git a/hedgedoc/README.md b/hedgedoc/README.md index b36f154..acd8ec8 100644 --- a/hedgedoc/README.md +++ b/hedgedoc/README.md @@ -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 diff --git a/hedgedoc/docker-compose.traefik.yml b/hedgedoc/docker-compose.traefik.yml deleted file mode 100644 index 36ec09a..0000000 --- a/hedgedoc/docker-compose.traefik.yml +++ /dev/null @@ -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 diff --git a/hedgedoc/docker-compose.yml b/hedgedoc/docker-compose.yml index c7dd5f2..5853122 100644 --- a/hedgedoc/docker-compose.yml +++ b/hedgedoc/docker-compose.yml @@ -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 From b88aeafc4392142977ab3a5824196793f1480c59 Mon Sep 17 00:00:00 2001 From: Simon C Date: Thu, 22 Jul 2021 17:37:05 +0200 Subject: [PATCH 3/3] feat(HedgeDoc): Remove dependency --- hedgedoc/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hedgedoc/docker-compose.yml b/hedgedoc/docker-compose.yml index 5853122..cb82d71 100644 --- a/hedgedoc/docker-compose.yml +++ b/hedgedoc/docker-compose.yml @@ -9,8 +9,8 @@ services: container_name: ${HEDGEDOC_CONTAINER_NAME:-hedgedoc} image: ${HEDGEDOC_IMAGE:-linuxserver/hedgedoc:1.8.2-ls22} restart: always - depends_on: - - postgres + # depends_on: # It's commented because docker `extends` don't support it + # - postgres volumes: - hedgedoc:/config - /etc/timezone:/etc/timezone:ro