dotfiles/docker/portainer/docker-compose.yaml

34 lines
1.1 KiB
YAML
Raw Normal View History

2020-02-04 17:25:15 +02:00
version: '3'
services:
portainer:
image: portainer/portainer
2020-02-10 00:31:05 +02:00
container_name: portainer
environment:
- TZ=Europe/Helsinki
2020-02-04 17:25:15 +02:00
restart: always
2020-02-13 21:24:50 +02:00
networks:
- proxy
2020-02-04 17:25:15 +02:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2020-02-04 17:25:37 +02:00
- /docker/portainer:/data
2020-02-04 17:25:15 +02:00
- /etc/localtime:/etc/localtime:ro
2020-02-13 21:24:50 +02:00
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.portainer-redirect.entrypoints=http'
- 'traefik.http.routers.portainer-redirect.rule=Host(`portainer.reekynet.com`)'
- 'traefik.http.middlewares.http2https.redirectscheme.scheme=https'
- 'traefik.http.routers.portainer-redirect.middlewares=http2https'
- 'traefik.http.routers.portainer.entrypoints=https'
- 'traefik.http.routers.portainer.rule=Host(`portainer.reekynet.com`)'
- 'traefik.http.routers.portainer.tls=true'
- 'traefik.http.routers.portainer.tls.certresolver=http'
- 'traefik.http.routers.portainer.service=portainer'
- 'traefik.docker.network=proxy'
- 'traefik.http.services.portainer.loadbalancer.server.port=9000'
networks:
proxy:
external: true