infrastructure/ansible/roles/docker/files/portainer/docker-compose.yml

17 lines
524 B
YAML
Raw Normal View History

2020-03-08 18:12:12 +00:00
version: '2.3'
2020-01-28 22:02:02 +00:00
services:
portainer:
image: portainer/portainer:latest
2020-01-28 22:02:02 +00:00
container_name: portainer
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`portainer.jakehoward.tech`)"
- "traefik.http.routers.portainer.tls=true"
- "traefik.http.routers.portainer.tls.certresolver=le"
- "traefik.http.routers.portainer.middlewares=internal-only@file"