homeserver/portainer/docker-compose.yaml

26 lines
622 B
YAML
Raw Normal View History

2021-01-09 20:40:51 +01:00
version: "3.3"
services:
app:
image: portainer/portainer-ce
volumes:
- ${VOLUMES_PATH}/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
expose:
- "9000"
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`portainer.${DOMAIN}`)"
- "traefik.http.routers.portainer.entrypoints=web"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
- "docker.group=selfhost"
restart: unless-stopped
networks:
web:
external: true