2021-01-09 20:40:51 +01:00
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: portainer/portainer-ce
|
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/portainer:/data
|
2022-04-11 16:13:14 +02:00
|
|
|
- /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
|
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"
|
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"
|
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
|