Added https

This commit is contained in:
Simon 2019-10-28 21:08:32 +01:00
parent 8e1c9fbaeb
commit 89eefb9b98
3 changed files with 15 additions and 2 deletions

4
.env
View File

@ -1,2 +1,2 @@
DIR=/home/simon/docker/data DIR=/srv/docker
DOMAIN=localhost DOMAIN=milvert.com

View File

@ -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"

View File

@ -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"