mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
chore: update compose with traefik
This commit is contained in:
@ -5,6 +5,8 @@ services:
|
|||||||
- --api.insecure=true
|
- --api.insecure=true
|
||||||
- --providers.docker
|
- --providers.docker
|
||||||
- --entrypoints.app.address=:80
|
- --entrypoints.app.address=:80
|
||||||
|
- --providers.docker.exposedbydefault=false
|
||||||
|
- --providers.docker.constraints=Label(`custom.label`,`blog`)
|
||||||
ports:
|
ports:
|
||||||
- '8021:80'
|
- '8021:80'
|
||||||
# The Web UI (enabled by --api.insecure=true)
|
# The Web UI (enabled by --api.insecure=true)
|
||||||
@ -15,6 +17,8 @@ services:
|
|||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
labels:
|
labels:
|
||||||
|
- 'traefik.enable=true'
|
||||||
|
- 'custom.label=blog'
|
||||||
- 'traefik.http.routers.app.rule=PathPrefix(`/`)'
|
- 'traefik.http.routers.app.rule=PathPrefix(`/`)'
|
||||||
- 'traefik.http.services.app.loadbalancer.server.port=3000'
|
- 'traefik.http.services.app.loadbalancer.server.port=3000'
|
||||||
deploy:
|
deploy:
|
||||||
|
Reference in New Issue
Block a user