-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
83 lines (73 loc) · 3.16 KB
/
docker-compose.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.9"
services:
api:
image: "$DOCKER_REGISTRY/mlmodelscope-api:1.0"
networks:
- default
- traefik
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.mlmodelscope-api.rule=Host(`staging.api.mlmodelscope.org`)"
- "traefik.http.routers.mlmodelscope-api.entrypoints=websecure"
- "traefik.http.routers.mlmodelscope-api.tls.certresolver=letsencrypt"
- "traefik.http.services.mlmodelscope-api.loadbalancer.server.port=80"
- "traefik.http.middlewares.add-cors.headers.accessControlAllowMethods=GET,OPTIONS,PUT"
- "traefik.http.middlewares.add-cors.headers.accesscontrolalloworiginlist=https://staging.mlmodelscope.org,http://localhost:3000"
- "traefik.http.middlewares.add-cors.headers.accessControlAllowCredentials=true"
- "traefik.http.middlewares.add-cors.headers.accessControlAllowHeaders=origin,x-requested-with,content-type,accept,x-request-id"
- "traefik.http.middlewares.add-cors.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.add-cors.headers.addvaryheader=true"
- "traefik.http.routers.mlmodelscope-api.middlewares=add-cors"
environment:
- C3SR_REGISTRY_ENDPOINTS=registry:8500
- C3SR_REGISTRY_PROVIDER=consul
- C3SR_TRACER_ENABLED=true
- C3SR_TRACER_PROVIDER=jaeger
- C3SR_TRACER_ENDPOINTS=trace:9411
- C3SR_TRACER_LEVEL=FULL_TRACE
ports:
- "8088:80"
registry:
image: consul
ports:
- "8500:8500"
trace:
image: jaegertracing/all-in-one:1.21.0
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
uploader:
image: "$DOCKER_REGISTRY/mlmodelscope-uploader:1.0"
networks:
- default
- traefik
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.mlmodelscope-uploader.rule=Host(`staging.uploader.mlmodelscope.org`)"
- "traefik.http.routers.mlmodelscope-uploader.entrypoints=websecure"
- "traefik.http.routers.mlmodelscope-uploader.tls.certresolver=letsencrypt"
- "traefik.http.services.mlmodelscope-uploader.loadbalancer.server.port=80"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowMethods=GET,OPTIONS,PUT"
- "traefik.http.middlewares.add-cors-uploader.headers.accesscontrolalloworiginlist=https://staging.mlmodelscope.org"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowCredentials=true"
- "traefik.http.middlewares.add-cors-uploader.headers.accessControlAllowHeaders=origin,x-requested-with,content-type,accept,x-request-id"
- "traefik.http.middlewares.add-cors-uploader.headers.accesscontrolmaxage=100"
- "traefik.http.middlewares.add-cors-uploader.headers.addvaryheader=true"
- "traefik.http.routers.mlmodelscope-uploader.middlewares=add-cors-uploader"
ports:
- "8089:80"
networks:
traefik:
external:
name: traefik