foodotfiles/docker/portainer/docker-compose.yaml

34 lines
1.1 KiB
YAML
Raw Normal View History

2020-02-04 15:25:15 +00:00
version: '3'
services:
portainer:
image: portainer/portainer
2020-02-09 22:31:05 +00:00
container_name: portainer
environment:
- TZ=Europe/Helsinki
2020-02-04 15:25:15 +00:00
restart: always
2020-02-13 19:24:50 +00:00
networks:
- proxy
2020-02-04 15:25:15 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2020-02-04 15:25:37 +00:00
- /docker/portainer:/data
2020-02-04 15:25:15 +00:00
- /etc/localtime:/etc/localtime:ro
2020-02-13 19:24:50 +00: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