20 lines
529 B
YAML
20 lines
529 B
YAML
services:
|
|
traefik:
|
|
build: .
|
|
network_mode: host
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- certs:/etc/certs/
|
|
- /tmp:/tmp
|
|
environment:
|
|
- CF_API_EMAIL=${CF_API_EMAIL}
|
|
- CF_DNS_API_TOKEN=${CF_DNS_API_TOKEN}
|
|
labels:
|
|
traefik.host: _
|
|
traefik.http.services.dashboard.loadbalancer.server.port: 0
|
|
traefik.http.routers.api.rule: Host(`traefik.wzray.com`)
|
|
traefik.http.routers.api.service: api@internal
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
certs:
|