project/frontend/traefik/docker-compose.yml

23 lines
489 B
YAML

version: "3"
services:
traefik:
image: traefik:1.6
command: --configFile=/traefik.toml
volumes:
- ./config.toml:/traefik.toml
# - /srv/traefik/acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
# - 443:443
networks:
- net
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.frontend.rule=Host:traefik.localhost,traefik.potato.kinf.wiai.uni-bamberg.de"
restart: on-failure:5
networks:
net:
driver: bridge