about summary refs log tree commit diff
path: root/docker-compose.yml
blob: 1c61dd607f20dc6791e8eb64d495863a5e361db1 (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
version: "3.3"
    
services:
    traefik:
        image: "traefik:v2.0"
        container_name: "traefik"
        command:
            - "--api.insecure=true"
            - "--providers.docker=true"
            - "--providers.docker.exposedbydefault=false"
            - "--entrypoints.web.address=:80"
            - "--metrics.prometheus=true"
        ports:
            - "80:80"
            - "8080:8080"
        volumes:
            - "/var/run/docker.sock:/var/run/docker.sock:ro"
        labels:
            - "traefik.enable=true"
            - "traefik.http.routers.traefik.entrypoints=web"
            - "traefik.http.routers.traefik.rule=Host(`traefik.docker.localhost`)"
            - "traefik.http.services.traefik.loadbalancer.server.port=8080"
        networks:
            - circus

networks:
    circus:
        external:
            name: circus