Move to traefik proxy
This commit is contained in:
parent
586fcc7d46
commit
ddc7fa39f6
5 changed files with 156 additions and 13 deletions
|
@ -6,9 +6,28 @@ services:
|
|||
environment:
|
||||
- TZ=Europe/Helsinki
|
||||
restart: always
|
||||
ports:
|
||||
- '9000:9000'
|
||||
networks:
|
||||
- proxy
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /docker/portainer:/data
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue