This repository has been archived on 2020-09-29. You can view files and clone it, but cannot push or open issues or pull requests.
traefik.autonomic.zone/docker-compose.yml

33 lines
742 B
YAML
Raw Normal View History

2020-04-25 10:08:00 +00:00
---
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"
2020-04-25 10:29:53 +00:00
- "traefik.http.routers.traefik.rule=Host(`traefik.swarm.autonomic.zone`)"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.routers.traefik.tls.certresolver=staging"
2020-04-25 10:08:00 +00:00
networks:
proxy:
external: true
volumes:
letsencrypt: