Added https
This commit is contained in:
parent
8e1c9fbaeb
commit
89eefb9b98
4
.env
4
.env
|
|
@ -1,2 +1,2 @@
|
||||||
DIR=/home/simon/docker/data
|
DIR=/srv/docker
|
||||||
DOMAIN=localhost
|
DOMAIN=milvert.com
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ services:
|
||||||
#devices:
|
#devices:
|
||||||
#- /dev/ttyAMA0
|
#- /dev/ttyAMA0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
user: ${UID}
|
||||||
volumes:
|
volumes:
|
||||||
- ${DIR}/nodered:/data
|
- ${DIR}/nodered:/data
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -160,6 +161,8 @@ services:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./traefik.yml:/etc/traefik/traefik.yml
|
- ./traefik.yml:/etc/traefik/traefik.yml
|
||||||
- ./static_config.yml:/etc/traefik/static_config.yml
|
- ./static_config.yml:/etc/traefik/static_config.yml
|
||||||
|
- "./acme.json:/acme.json"
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.traefik.rule=Host(`tr.${DOMAIN}`)"
|
- "traefik.http.routers.traefik.rule=Host(`tr.${DOMAIN}`)"
|
||||||
- "traefik.http.routers.traefik.entrypoints=web"
|
- "traefik.http.routers.traefik.entrypoints=web"
|
||||||
|
|
|
||||||
10
traefik.yml
10
traefik.yml
|
|
@ -16,10 +16,20 @@ providers:
|
||||||
watch: true
|
watch: true
|
||||||
|
|
||||||
|
|
||||||
|
certificatesResolvers:
|
||||||
|
sample:
|
||||||
|
acme:
|
||||||
|
email: simon@milvert.com
|
||||||
|
storage: acme.json
|
||||||
|
httpChallenge:
|
||||||
|
# used during the challenge
|
||||||
|
entryPoint: web
|
||||||
|
|
||||||
|
|
||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: ":80"
|
address: ":80"
|
||||||
|
web-sercure:
|
||||||
|
address: ":443"
|
||||||
mqtt:
|
mqtt:
|
||||||
address: ":9001"
|
address: ":9001"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue