frontend-reference: add https port mapping
parent
a71376b1ce
commit
9533554cac
|
|
@ -26,10 +26,13 @@
|
||||||
|
|
||||||
1. Be on a host with port 80 available from the internet
|
1. Be on a host with port 80 available from the internet
|
||||||
2. Follw HTTP usage above up to step 2
|
2. Follw HTTP usage above up to step 2
|
||||||
3. Add acme.json volume:
|
3. Reconfigure docker-compose
|
||||||
* Uncomment the line for the acme.json volume
|
* Add acme.json volume:
|
||||||
* Adjust the host path
|
* Uncomment the line for the acme.json volume
|
||||||
* Syntax: <host-path>:<container-path>
|
* Adjust the host path
|
||||||
|
* Syntax: <host-path>:<container-path>
|
||||||
|
* Add port mapping for HTTPS
|
||||||
|
* Uncomment the line for the 443:443 port mapping
|
||||||
4. Create acme.json
|
4. Create acme.json
|
||||||
* touch acme.json
|
* touch acme.json
|
||||||
* chmod 600 acme.json
|
* chmod 600 acme.json
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,11 @@ services:
|
||||||
command: --configFile=/traefik.toml
|
command: --configFile=/traefik.toml
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.toml:/traefik.toml
|
- ./config.toml:/traefik.toml
|
||||||
# - /srv/traefik/acme.json:/acme.json
|
# - /srv/traefik/acme.json:/acme.json
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
|
# - 443:443
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
labels:
|
labels:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue