-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yaml
43 lines (40 loc) · 1.15 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
43
version: "3.9"
x-logging:
&loki-logging
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-external-labels: job=dockerlogs,maintainer=xylonx,environment=development
loki-pipeline-stages: |
- json:
expressions:
traceId: TraceID
spanId: SpanID
level: level
- labels:
traceId:
spanId:
level:
services:
open-platform:
image: ccr.ccs.tencentyun.com/unique-studio/open-platform:${DRONE_TAG:-latest}
container_name: dev-open
restart: on-failure:5
volumes:
- /root/service-dev/open-platform/settings.yaml:/opt/open-platform/settings.yaml
ports:
- 6001:5000
networks:
- db_network
- apm
logging: *loki-logging
labels:
- "traefik.enable=true"
- "traefik.http.routers.open-platform.rule=Host(`open.hustunique.com`)"
networks:
db_network:
external: true
name: database
apm:
external: true
name: apm