aboutsummaryrefslogtreecommitdiff
path: root/services/traefik/compose.yaml
blob: 504367c49ab3333ad4061486c8599ad20464dd2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
networks:
  proxy:
    external: true

volumes:
  acme:

services:
  traefik:
    image: traefik
    container_name: traefik
    restart: always
    environment:
      CF_DNS_API_TOKEN:
    networks:
      - proxy
    ports:
      - 80:80
      - 443:443
    labels:
      traefik.enable: true
      traefik.http.routers.dashboard.rule: Host(`traefik.4d6178.work`)
      traefik.http.routers.dashboard.service: api@internal
      traefik.http.routers.dashboard.entrypoints: websecure
      traefik.http.routers.dashboard.tls: true
      traefik.http.routers.dashboard.tls.certresolver: le
      traefik.http.routers.dashboard.middlewares: oidc-auth@file
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - acme:/acme
      - /opt/traefik/traefik.yaml:/etc/traefik/traefik.yaml
      - /opt/traefik/config.yaml:/etc/traefik/config.yaml