Oliver Davies
34174d22fe
This commit adds HTTPS and SSL support via `mkcert` to projects using the Traefik proxy. This does require changing the URLs from `*.localhost` to `*.docker.localhost`, but this is something that can easily be done by updating the template files in Build Configs. Based on https://github.com/Heziode/traefik-v2-https-ssl-localhost.
23 lines
560 B
YAML
23 lines
560 B
YAML
services:
|
|
reverse-proxy:
|
|
image: "traefik:v2.5"
|
|
ports:
|
|
- "443:443"
|
|
- "80:80"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./traefik.yml:/etc/traefik/traefik.yml"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
- ./certs:/etc/certs:ro
|
|
- ./config/dynamic.yml:/etc/traefik/dynamic.yml:ro
|
|
- ./config/static.yml:/etc/traefik/traefik.yml:ro
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
labels:
|
|
- "traefik.enable=false"
|
|
networks:
|
|
- traefik_proxy
|
|
networks:
|
|
traefik_proxy:
|
|
external: true
|