renamed Træfik network in compose file, added name variable for it

This commit is contained in:
Bryan Joshua Pedini 2022-01-15 23:09:46 +01:00
parent 5b9facf603
commit 026fc917e9
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,7 @@ services:
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=true - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=true
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=letsencrypt - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=letsencrypt
networks: networks:
- traefik-proxy - traefik
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443
@ -70,5 +70,6 @@ services:
- ./le-certs.json:/le-certs.json - ./le-certs.json:/le-certs.json
networks: networks:
traefik-proxy: traefik:
external: true external: true
name: ${TRAEFIK_NETWORK}

View File

@ -2,6 +2,7 @@ TRAEFIK_VERSION=2.4
TRAEFIK_CONTAINER_NAME=traefik.mydomain.com TRAEFIK_CONTAINER_NAME=traefik.mydomain.com
TRAEFIK_MATCHRULE=traefik.mydomain.com TRAEFIK_MATCHRULE=traefik.mydomain.com
TRAEFIK_ROUTER=traefik_mydomain_com TRAEFIK_ROUTER=traefik_mydomain_com
TRAEFIK_NETWORK=traefik-proxy
TRAEFIK_LOGLEVEL=INFO TRAEFIK_LOGLEVEL=INFO
TRAEFIK_PILOT_TOKEN= TRAEFIK_PILOT_TOKEN=
TRAEFIK_DASHBOARD_WHITELIST=1.2.3.4/24 TRAEFIK_DASHBOARD_WHITELIST=1.2.3.4/24