17 lines
515 B
YAML
17 lines
515 B
YAML
|
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"
|