Files
selfhosting/traefik/docker-compose.yml
T

20 lines
428 B
YAML
Raw Normal View History

2020-06-27 14:55:16 +02:00
version: '3'
services:
traefik:
container_name: traefik
2020-06-27 16:47:01 +02:00
image: traefik:v2.2.1
2020-06-27 15:36:18 +02:00
command:
- --entrypoints.web.address=:80
- --providers.docker=true
2020-06-27 15:45:25 +02:00
- --api.insecure # Don't do that in production
2020-06-27 14:55:16 +02:00
ports:
- 80:80
2020-06-27 15:20:47 +02:00
- 8080:8080
2020-06-27 14:55:16 +02:00
networks:
2020-06-27 15:06:38 +02:00
- srv
2020-06-27 14:55:16 +02:00
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
2020-06-27 15:06:38 +02:00
- /srv/hosting/traefik/logs:/logs