This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
85 lines (78 loc) · 1.6 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
84
85
version: "3.8"
services:
caddy:
container_name: caddy
image: caddy:2.4.5
ports:
- "80:80"
- "443:443"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
depends_on:
- app-kami
networks:
- app-network
app-kami:
env_file:
- .env
container_name: mx-kami
restart: "on-failure"
ports:
- "2323:2323"
build:
context: ./kami
args:
NODE_ENV: production
BASE_URL: "${BASE_URL}"
depends_on:
- app-server
command: "node server.js"
environment:
NODE_ENV: production
networks:
- app-network
links:
- app-server
app-server:
container_name: mx-server
image: innei/mx-server:3
volumes:
- ./data/mx-space:/root/.mx-space
command: node index.js --redis_host=redis --db_host=mongo --allowed_origins=${ALLOWED_ORIGINS} --jwt_secret=${JWT_SECRET} --cluster --color
restart: "on-failure"
ports:
- "2333:2333"
depends_on:
- mongo
- redis
links:
- mongo
- redis
networks:
- app-network
environment:
- NODE_ENV=production
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2333/info"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
mongo:
container_name: mongo
image: mongo
volumes:
- ./data/db:/data/db
ports:
- "127.0.0.1:3344:27017"
networks:
- app-network
redis:
image: redis
container_name: redis
networks:
- app-network
networks:
app-network:
driver: bridge