Files
sablier/docker-compose.yml
2020-10-22 20:03:54 +02:00

30 lines
875 B
YAML

version: "3.7"
services:
traefik:
image: traefik
entrypoint: sh -c "sed 's/$$TRAEFIK_PILOT_TOKEN/$TRAEFIK_PILOT_TOKEN/' /etc/traefik/traefik-template.yml > /etc/traefik/traefik.yml && traefik"
ports:
- "8000:80"
- "8080:8080"
volumes:
- './traefik_dev.yml:/etc/traefik/traefik-template.yml'
- '/var/run/docker.sock:/var/run/docker.sock'
- '.:/plugins/go/src/github.com/acouvreur/traefik-ondemand-plugin'
- './config_dev.yml:/etc/traefik/config.yml'
environment:
- TRAEFIK_PILOT_TOKEN
deploy:
labels:
- traefik.enable=true
- traefik.http.services.traefik.loadbalancer.server.port=8080
ondemand:
image: acouvreur/traefik-ondemand-service:latest
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
whoami:
image: containous/whoami
deploy:
replicas: 0