summaryrefslogtreecommitdiff
path: root/Applications/Traefik/docker-compose.yml
blob: 33bb0bc6cd531c2c0278c0eed05e2f7a8493e8bb (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
version: "3"

services:
  traefik:
    image: "traefik"
    container_name: "traefik"
    restart: "always"
    command:
      - "--api.insecure=true"
      - "--entrypoints.web.address=:80"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
    ports:
      - "80:80"
    labels:
      - "traefik.enable=true"
      # Dashboard
      - "traefik.http.services.traefik.loadbalancer.server.port=8080"
      - "traefik.http.routers.traefik.rule=Host(`${DOMAIN}`)"
      - "traefik.http.routers.traefik.entrypoints=web"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
    networks:
      - "traefik"

networks:
  traefik:
    name: "${NETWORK}"