-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.backend.prod.yml
33 lines (31 loc) · 1.11 KB
/
docker-compose.backend.prod.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
version: '3.8'
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:
backend:
image: ccr.ccs.tencentyun.com/unique-studio/recruitment-system
container_name: recruitment-system-backend-dev
env_file:
- /usr/src/recruitment/packages/backend/.env
ports:
- '5000:5000'
volumes:
- /root/service/recruitment/data/resumes:/usr/src/recruitment/packages/backend/data/resumes
- /root/service/recruitment/data/backend/logs:/usr/src/recruitment/packages/backend/logs
- /root/service/recruitment/data/backend/backup:/usr/src/recruitment/packages/backend/backup
- /root/service-dev/recruitementSystem/.backend.env:/usr/src/recruitment/packages/backend/.env
- /tmp/yarn-cache:/tmp/yarn-cache
logging: *loki-logging