Add portainer compose file

This commit is contained in:
Jake Howard
2020-01-28 22:02:02 +00:00
parent c3959d43c6
commit d1e5f63efd
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,16 @@
version: '3'
services:
portainer:
image: portainer/portainer
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"