homeserver/portainer/docker-compose.yaml

26 lines
701 B
YAML

version: "3.3"
services:
app:
image: portainer/portainer-ce
volumes:
- ${VOLUMES_PATH}/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock:z
- /var/lib/docker/volumes:/var/lib/docker/volumes
ports:
- "9000:9000" # to get portainer without proxy too
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`portainer.${HOSTNAME}`)"
- "traefik.http.routers.portainer.entrypoints=web"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
- "docker.group=selfhost"
- "docker.group=portainer"
restart: unless-stopped
networks:
web:
external: true