16 lines
524 B
YAML
16 lines
524 B
YAML
version: '2.3'
|
|
|
|
services:
|
|
portainer:
|
|
image: portainer/portainer:latest
|
|
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"
|