Browse Source

matrix customisable SYNAPSE_SERVER_NAME & RIOT_SUBDOMAIN

Guilhem Saurel 6 years ago
parent
commit
99923929cb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      matrix/docker-compose.yml

+ 3 - 3
matrix/docker-compose.yml

@@ -11,7 +11,7 @@ services:
     env_file:
     env_file:
       - .env
       - .env
     environment:
     environment:
-      - SYNAPSE_SERVER_NAME=${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}
+      - SYNAPSE_SERVER_NAME=${SYNAPSE_SERVER_NAME:-${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}}
     labels:
     labels:
       traefik.enable: "true"
       traefik.enable: "true"
       traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}"
       traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}"
@@ -38,10 +38,10 @@ services:
     build:
     build:
       context: .
       context: .
       args:
       args:
-        SYNAPSE_SERVER_NAME: ${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}
+      - SYNAPSE_SERVER_NAME=${SYNAPSE_SERVER_NAME:-${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}}
         RIOT_VERSION: v0.17.8
         RIOT_VERSION: v0.17.8
     labels:
     labels:
       traefik.enable: "true"
       traefik.enable: "true"
-      traefik.frontend.rule: "Host: riot.${CHATONS_DOMAIN:-localhost}, www.riot.${CHATONS_DOMAIN:-localhost}"
+      traefik.frontend.rule: "Host: ${RIOT_SUBDOMAIN:-riot}.${CHATONS_DOMAIN:-localhost}, www.${RIOTSUBDOMAIN:-riot}.${CHATONS_DOMAIN:-localhost}"
     networks:
     networks:
       - web
       - web