-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 1.94 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
version: "3.9"
services:
api:
container_name: api-camon
image: api-camon
networks:
- camon
ports:
- "3000:3000"
environment:
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
env_file:
- .env
media:
container_name: media-camon
image: media-camon
networks:
- camon
ports:
- "3001:3001"
- "30000-31000:30000-31000"
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_MEDIA=${REDIS_MEDIA}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- API_SERVER_URL=${API_SERVER_URL}
- HTTP_TIMEOUT=${HTTP_TIMEOUT}
- RECORD_SERVER_URL=${RECORD_SERVER_URL}
- SERVER_PRIVATE_IP=${SERVER_PRIVATE_IP}
- PUBLIC_RECORD_SERVER_URL=${PUBLIC_RECORD_SERVER_URL}
- JWT_SECRET=${JWT_SECRET}
- ANNOUNCED_IP=${ANNOUNCED_IP}
- MEDIA_PORT=${MEDIA_PORT}
chat:
container_name: chat-camon
image: chat-camon
networks:
- camon
ports:
- "3002:3002"
environment:
- CHAT_PORT=${CHAT_PORT}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_CHAT=${REDIS_CHAT}
- JWT_SECRET=${JWT_SECRET}
- API_SERVER_URL=${API_SERVER_URL}
- HTTP_TIMEOUT=${HTTP_TIMEOUT}
record:
container_name: record-camon
image: record-camon
networks:
camon:
ipv4_address: 172.19.0.10
expose:
- "3003"
ports:
- "3003:3003"
environment:
- NCLOUD_ACCESS_KEY=${NCLOUD_ACCESS_KEY}
- NCLOUD_SECRET_KEY=${NCLOUD_SECRET_KEY}
- NCLOUD_BUCKET_NAME=${NCLOUD_BUCKET_NAME}
- API_SERVER_URL=${API_SERVER_URL}
- CDN_URL=${CDN_URL}
networks:
camon:
driver: bridge
ipam:
config:
- subnet: 172.19.0.0/16