-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
42 lines (39 loc) · 1.49 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3'
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.2
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8888:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
swagger-ui:
image: swaggerapi/swagger-ui
labels:
- "traefik.http.routers.swagger.rule=Host(`swagger.localhost`)"
- "traefik.http.services.swagger.loadbalancer.server.port=8080"
environment:
- SWAGGER_JSON=/openapi/openapi.yaml
volumes:
- ./dist:/openapi
bonita:
image: bonita:7.10.5
labels:
- "traefik.http.routers.bonita.rule=Host(`bonita.localhost`)"
- "traefik.http.routers.bonita.middlewares=bonita-cors@docker"
- "traefik.http.middlewares.bonita-cors.headers.accessControlAllowMethods=*"
- "traefik.http.middlewares.bonita-cors.headers.accessControlExposeHeaders=*"
- "traefik.http.middlewares.bonita-cors.headers.accessControlAllowOriginList=http://swagger.localhost"
- "traefik.http.middlewares.bonita-cors.headers.accessControlMaxAge=100"
- "traefik.http.middlewares.bonita-cors.headers.addVaryHeader=true"
# healthcheck:
# test: [ "CMD", "curl", "-f", "http://bonita.localhost/bonita" ]
# interval: 1m30s
# timeout: 10s
# retries: 3