-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.03 KB
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
version: '3.8'
services:
app:
container_name: juejin-core
image: suemor/juejin-core:latest
command: node index.js --db_host=juejin_mongo --allowed_origins=${ALLOWED_ORIGINS} --port=${PORT} --qn_ak=${QN_AK} --qn_sk=${QN_SK} --qn_scope=${QN_SCOPE} --qn_host=${QN_HOST} --color
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production
volumes:
- ./data/juejin-core:/root/.juejin-core
ports:
- '7498:7498'
depends_on:
- juejin_mongo
links:
- juejin_mongo
networks:
- app-network
restart: always
healthcheck:
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:4913/api/v1/ping']
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
juejin_mongo:
image: bitnami/mongodb:5.0
environment:
MONGODB_REPLICA_SET_MODE: primary
ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- ./data/db:/data/db
ports:
- '7495:27017'
networks:
- app-network
restart: always
networks:
app-network:
driver: bridge