2020-02-04 17:25:15 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
portainer:
|
2020-12-06 11:36:01 +02:00
|
|
|
image: portainer/portainer-ce
|
2020-02-10 00:31:05 +02:00
|
|
|
container_name: portainer
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/Helsinki
|
2020-07-11 14:24:47 +03:00
|
|
|
restart: unless-stopped
|
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'
|
2020-12-06 11:36:01 +02:00
|
|
|
- 'traefik.http.routers.portainer-redirect.rule=Host(`portainer.korhonen.cc`)'
|
2020-02-13 21:24:50 +02:00
|
|
|
- 'traefik.http.middlewares.http2https.redirectscheme.scheme=https'
|
|
|
|
- 'traefik.http.routers.portainer-redirect.middlewares=http2https'
|
|
|
|
|
|
|
|
- 'traefik.http.routers.portainer.entrypoints=https'
|
2020-12-06 11:36:01 +02:00
|
|
|
- 'traefik.http.routers.portainer.rule=Host(`portainer.korhonen.cc`)'
|
2020-02-13 21:24:50 +02:00
|
|
|
- '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
|