Update docker-compose.yml
This commit is contained in:
@@ -61,18 +61,20 @@ services:
|
|||||||
- traefik.http.routers.gameovergne-client.rule=Host(`dev.vincent-guillet.fr`) && (Path(`/gameovergne`) || PathPrefix(`/gameovergne/`))
|
- traefik.http.routers.gameovergne-client.rule=Host(`dev.vincent-guillet.fr`) && (Path(`/gameovergne`) || PathPrefix(`/gameovergne/`))
|
||||||
- traefik.http.routers.gameovergne-client.entrypoints=edge
|
- traefik.http.routers.gameovergne-client.entrypoints=edge
|
||||||
- traefik.http.routers.gameovergne-client.service=gameovergne-client
|
- traefik.http.routers.gameovergne-client.service=gameovergne-client
|
||||||
|
|
||||||
|
# Service unique pour le front (utilisé par les 2 routers)
|
||||||
- traefik.http.services.gameovergne-client.loadbalancer.server.port=80
|
- traefik.http.services.gameovergne-client.loadbalancer.server.port=80
|
||||||
|
|
||||||
- traefik.http.routers.gameovergne-client.middlewares=gameovergne-slash,gameovergne-client-stripprefix
|
- traefik.http.routers.gameovergne-client.middlewares=gameovergne-slash,gameovergne-client-stripprefix
|
||||||
- traefik.http.middlewares.gameovergne-slash.redirectregex.regex=^(.*/gameovergne)$$
|
- traefik.http.middlewares.gameovergne-slash.redirectregex.regex=^(.*/gameovergne)$$
|
||||||
- traefik.http.middlewares.gameovergne-slash.redirectregex.replacement=$$1/
|
- traefik.http.middlewares.gameovergne-slash.redirectregex.replacement=$$1/
|
||||||
- traefik.http.middlewares.gameovergne-slash.redirectregex.permanent=true
|
- traefik.http.middlewares.gameovergne-slash.redirectregex.permanent=true
|
||||||
- traefik.http.middlewares.gameovergne-client-stripprefix.stripprefix.prefixes=/gameovergne
|
- traefik.http.middlewares.gameovergne-client-stripprefix.stripprefix.prefixes=/gameovergne
|
||||||
|
|
||||||
# Proxy Presta via /ps
|
# Proxy Presta via /ps (2e router vers le même service)
|
||||||
- traefik.http.routers.gameovergne-ps.rule=Host(`dev.vincent-guillet.fr`) && PathPrefix(`/ps`)
|
- traefik.http.routers.gameovergne-ps.rule=Host(`dev.vincent-guillet.fr`) && PathPrefix(`/ps`)
|
||||||
- traefik.http.routers.gameovergne-ps.entrypoints=edge
|
- traefik.http.routers.gameovergne-ps.entrypoints=edge
|
||||||
- traefik.http.routers.gameovergne-ps.service=gameovergne-client
|
- traefik.http.routers.gameovergne-ps.service=gameovergne-client
|
||||||
- traefik.http.services.gameovergne-client.loadbalancer.server.port=80
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
|
|||||||
Reference in New Issue
Block a user