代码拉取完成,页面将自动刷新
services:
app:
build:
context: ./
dockerfile: development.dockerfile
ports:
- 80:8080
volumes:
- ./:/app
labels:
- traefik.http.routers.app.rule=PathPrefix(`/app`)
- traefik.http.services.app.loadbalancer.server.port=8080
- traefik.http.middlewares.app-prefix.stripprefix.prefixes=/app
- traefik.http.middlewares.app-prefix.stripprefix.forceSlash=false # see https://doc.traefik.io/traefik/middlewares/stripprefix/#forceslash
- traefik.http.routers.app.middlewares=app-prefix
# setup a proxy to test hosting on a sub-path; here localhost:8080/app
proxy:
image: traefik:v2.3
command:
- --providers.docker
- --api.insecure=true
- --accesslog # http access log
- --log #Traefik log, for configurations and errors
- --api # Enable the Dashboard and API
ports:
- "8888:80"
volumes:
# Traefik must be able to listen for Docker events
- /var/run/docker.sock:/var/run/docker.sock
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。