32 lines
680 B
YAML
32 lines
680 B
YAML
---
|
|
version: "3.3"
|
|
|
|
services:
|
|
traefik:
|
|
image: "traefik:v2.2"
|
|
restart: "always"
|
|
container_name: "traefik"
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "8080:8080"
|
|
volumes:
|
|
# use https://github.com/Tecnativa/docker-socket-proxy later
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
- "./letsencrypt:/letsencrypt"
|
|
- "./traefik.yml:/traefik.yml"
|
|
networks:
|
|
- proxy
|
|
deploy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.api.rule=Host(`traefik.swarm.autonomic.zone`)"
|
|
- "traefik.http.routers.api.service=api@internal"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
letsencrypt:
|