Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version: '3.9'
- services:
- traefik:
- image: traefik:latest
- container_name: traefik
- restart: unless-stopped
- security_opt:
- - no-new-privileges:true
- networks:
- - proxy
- ports:
- - 80:80
- - 443:443
- - 8080:8080
- volumes:
- - /etc/localtime:/etc/localtime:ro
- - /var/run/docker.sock:/var/run/docker.sock:ro
- - ./data/traefik.yml:/traefik.yml:ro
- - ./data/acme.json:/acme.json
- - ./data/acme-staging.json:/acme-staging.json
- - ./data/dynamic_conf.yml:/dynamic_conf.yml
- labels:
- - "traefik.enable=true"
- - "traefik.http.routers.traefik.entrypoints=http"
- - "traefik.http.routers.traefik.rule=Host(`traefik.redacted.com`)"
- - "traefik.http.middlewares.traefik-auth.basicauth.users=redacted"
- - "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- - "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
- - "traefik.http.routers.traefik-secure.entrypoints=https"
- - "traefik.http.routers.traefik-secure.rule=Host(`traefik.redacted.com`)"
- - "traefik.http.routers.traefik-secure.tls=true"
- - "traefik.http.routers.traefik-secure.tls.certresolver=le"
- - "traefik.http.routers.traefik-secure.service=api@internal"
- - "providers.file.filename=/dynamic_conf.yml"
- - "traefik.http.routers.traefik-secure.middlewares=secHeaders@file,traefik-auth"
- networks:
- proxy:
- name: proxy
- driver: bridge
- attachable: true
- enable_ipv6: true
- ipam:
- config:
- - subnet: 172.28.0.0/16
- - subnet: fd44:0172:0028:0000::/48
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement