homeserver/portainer/docker-compose.yaml

25 lines
685 B
YAML
Raw Normal View History

2021-01-09 20:40:51 +01:00
services:
app:
image: portainer/portainer-ce
volumes:
- ${VOLUMES_PATH}/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock:z
2021-01-09 20:40:51 +01:00
- /var/lib/docker/volumes:/var/lib/docker/volumes
ports:
- "9000:9000" # to get portainer without proxy too
2021-01-09 20:40:51 +01:00
networks:
- web
labels:
- "traefik.enable=true"
2022-03-03 15:36:41 +01:00
- "traefik.http.routers.portainer.rule=Host(`portainer.${HOSTNAME}`)"
2021-01-09 20:40:51 +01:00
- "traefik.http.routers.portainer.entrypoints=web"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
- "docker.group=selfhost"
- "docker.group=portainer"
2021-01-09 20:40:51 +01:00
restart: unless-stopped
networks:
web:
external: true