mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
28 lines
701 B
YAML
28 lines
701 B
YAML
services:
|
|
reverse-proxy:
|
|
image: traefik
|
|
command:
|
|
- --api.insecure=true
|
|
- --providers.docker
|
|
- --entrypoints.app.address=:80
|
|
- --providers.docker.exposedbydefault=false
|
|
- --providers.docker.constraints=Label(`custom.label`,`blog`)
|
|
ports:
|
|
- '8021:80'
|
|
# The Web UI (enabled by --api.insecure=true)
|
|
- '8022:8080'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
app:
|
|
build: .
|
|
labels:
|
|
- 'traefik.enable=true'
|
|
- 'custom.label=blog'
|
|
- 'traefik.http.routers.app.rule=PathPrefix(`/`)'
|
|
- 'traefik.http.services.app.loadbalancer.server.port=3000'
|
|
deploy:
|
|
replicas: 3
|
|
ports:
|
|
- 3000
|