migrate to nginx-proxy
This commit is contained in:
parent
6c6b0924b0
commit
5b183ff4e5
1 changed files with 4 additions and 11 deletions
|
@ -12,17 +12,10 @@ services:
|
||||||
- srv
|
- srv
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
expose:
|
expose:
|
||||||
- 9000
|
- 9000
|
||||||
labels:
|
environment:
|
||||||
- traefik.enable=true
|
- VIRTUAL_HOST=${HOST_PORTAINER}.${DOMAIN}
|
||||||
- traefik.http.routers.portainer.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_PORTAINER}`)
|
- VIRTUAL_PORT=9000
|
||||||
- traefik.http.routers.portainer.entrypoints=websecure
|
|
||||||
- traefik.http.routers.portainer.tls=true
|
|
||||||
- traefik.http.services.portainer.loadbalancer.server.port=9000
|
|
||||||
- traefik.http.routers.portainer.middlewares=portainerRedir,portainerPStrip
|
|
||||||
- traefik.http.middlewares.portainerPStrip.stripprefix.prefixes=${PATH_PORTAINER}
|
|
||||||
- traefik.http.middlewares.portainerRedir.redirectregex.regex=^(.*)${PATH_PORTAINER}$$
|
|
||||||
- traefik.http.middlewares.portainerRedir.redirectregex.replacement=$${1}${PATH_PORTAINER}/
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
portainer_data:
|
portainer_data:
|
||||||
|
|
Loading…
Add table
Reference in a new issue