24 lines
685 B
YAML
24 lines
685 B
YAML
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
|