mirror of
https://github.com/ketan-vijayvargiya/linuxfestnorthwest-talk-2024.git
synced 2024-05-19 06:02:27 -07:00
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
services:
|
|
|
|
traefik:
|
|
image: traefik:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
- DUCKDNS_TOKEN=$DUCKDNS_TOKEN
|
|
- LEGO_CA_CERTIFICATES=/stepca-certs/root_ca.crt
|
|
- LEGO_CA_SYSTEM_CERT_POOL=true
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./config/traefik/config.yaml:/etc/traefik/traefik.yaml
|
|
- ./config/traefik/fileprovider:/opt/config/fileprovider
|
|
- /opt/traefik:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /var/lib/docker/volumes/linuxfestnorthwest-talk-2024_step-ca/_data/certs:/stepca-certs:ro
|
|
labels:
|
|
- traefik.enable=false
|
|
|
|
step-ca:
|
|
restart: unless-stopped
|
|
image: smallstep/step-ca
|
|
env_file:
|
|
- ./config/stepca.env
|
|
volumes:
|
|
- step-ca:/home/step
|
|
ports:
|
|
- 9000:9000
|
|
labels:
|
|
- traefik.enable=false
|
|
|
|
whoami-self-signed-certs:
|
|
image: traefik/whoami
|
|
restart: unless-stopped
|
|
labels:
|
|
- traefik.http.routers.whoami-self-signed-certs.rule=Host(`whoami-0.${BASE_DOMAIN}`)
|
|
- traefik.http.routers.whoami-self-signed-certs.tls=
|
|
|
|
whoami-public-ca:
|
|
image: traefik/whoami
|
|
restart: unless-stopped
|
|
labels:
|
|
- traefik.http.routers.whoami-public-ca.rule=Host(`whoami-1.${BASE_DOMAIN}`)
|
|
- traefik.http.routers.whoami-public-ca.tls.certresolver=webExternalResolver
|
|
|
|
whoami-custom-cert:
|
|
image: traefik/whoami
|
|
restart: unless-stopped
|
|
labels:
|
|
- traefik.http.routers.whoami-custom-cert.rule=Host(`whoami-2.${BASE_DOMAIN}`)
|
|
- traefik.http.routers.whoami-custom-cert.tls.certresolver=stepCaResolver
|
|
|
|
whoami-custom-cert-mtls:
|
|
image: traefik/whoami
|
|
restart: unless-stopped
|
|
labels:
|
|
- traefik.http.routers.whoami-custom-cert-mtls.rule=Host(`whoami-3.${BASE_DOMAIN}`)
|
|
- traefik.http.routers.whoami-custom-cert-mtls.tls.certresolver=stepCaResolver
|
|
- traefik.http.routers.whoami-custom-cert-mtls.tls.options=mtls@file
|
|
|
|
volumes:
|
|
step-ca:
|