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
|
2021-05-22 12:33:40 +02:00
|
|
|
ports:
|
|
|
|
- "9000:9000" # to get portainer without proxy too
|
2021-01-09 20:40:51 +01:00
|
|
|
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"
|
2021-03-16 22:15:47 +01:00
|
|
|
- "docker.group=portainer"
|
2021-01-09 20:40:51 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|