26 lines
622 B
YAML
26 lines
622 B
YAML
|
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
|