homelab/bxl-rpi/system/docker-compose.portainer.yaml

24 lines
694 B
YAML
Raw Normal View History

2023-04-16 18:16:59 +02:00
services:
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
2023-09-26 10:26:43 +02:00
#ports:
#- "9443:9443"
2023-04-16 18:16:59 +02:00
volumes:
- $DATA/portainer:/data:rw
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`portainer.bxl.bhasher.com`)"
- "traefik.http.routers.portainer.entrypoints=externalsecure,internalsecure"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
- "traefik.http.routers.portainer.tls=true"
- "traefik.http.routers.portainer.tls.certresolver=http"
restart: unless-stopped
networks:
- external
networks:
external:
external: true