feat: Utilisation de la variable URL dans docker-compose
This commit is contained in:
parent
cf23e0bc49
commit
a7eb2db118
|
@ -6,11 +6,6 @@ volumes:
|
|||
cremeaux-stats:
|
||||
name: cremeaux-stats
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: traefik
|
||||
|
||||
services:
|
||||
crmx-prod:
|
||||
container_name: crmx-prod
|
||||
|
@ -18,7 +13,7 @@ services:
|
|||
restart: always
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.crmx-prod.rule: "Host(`cremeaux.fr`)"
|
||||
traefik.http.routers.crmx-prod.rule: "Host(`${URL}`)"
|
||||
traefik.http.routers.crmx-prod.entrypoints: "web"
|
||||
volumes:
|
||||
- cremeaux-log:/var/log/nginx
|
||||
|
@ -35,3 +30,8 @@ services:
|
|||
- cremeaux-stats:/usr/share/nginx/html/stats
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: traefik
|
||||
|
|
|
@ -12,7 +12,7 @@ services:
|
|||
restart: always
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.crmx-staging.rule: "Host(`staging.cremeaux.fr`)"
|
||||
traefik.http.routers.crmx-staging.rule: "Host(`staging.${URL}`)"
|
||||
traefik.http.routers.crmx-staging.entrypoints: "web"
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
|
|
Loading…
Reference in New Issue