23 lines
688 B
YAML
23 lines
688 B
YAML
version: "3"
|
|
|
|
services:
|
|
web:
|
|
container_name: ${TOTP_CONTAINER_NAME}
|
|
image: bryanpedini/go-totp:${TOTP_VERSION}
|
|
labels:
|
|
- traefik.enable=true
|
|
# HTTPS
|
|
- traefik.http.routers.https-totp_bjphoster_com.entrypoints=https
|
|
# configure the exposed service
|
|
- traefik.http.routers.https-totp_bjphoster_com.rule=Host(`totp.bjphoster.com`)
|
|
# of course, enable TLS and it's certificate provider
|
|
- traefik.http.routers.https-totp_bjphoster_com.tls=true
|
|
- traefik.http.routers.https-totp_bjphoster_com.tls.certresolver=letsencrypt
|
|
networks:
|
|
- traefik-proxy
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
traefik-proxy:
|
|
external: true
|