homelab/server/config/portainer/docker-compose.yml

31 lines
803 B
YAML
Raw Normal View History

2022-02-08 17:00:27 -08:00
version: "3"
services:
portainer:
image: portainer/portainer-ce
container_name: portainer_portainer
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
2022-07-14 15:22:44 -07:00
keep-file: "true"
restart: "no"
2022-02-08 17:00:27 -08:00
command: -H unix:///var/run/docker.sock
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
labels:
- traefik.http.routers.portainer.rule=Host(`portainer.jafner.net`)
- traefik.http.routers.portainer.tls.certresolver=lets-encrypt
- traefik.http.services.portainer.loadbalancer.server.port=9000
volumes:
portainer_data:
networks:
web:
external: true