forked from agross/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.59 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.59 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3'
services:
db:
image: mongo:3.6.11
restart: always
ports:
# Need to publish such that core (on the host network) can talk to the DB.
- 127.0.0.1:27017:27017
volumes:
- /etc/localtime:/etc/localtime
- mongo-config:/data/configdb
- mongo-data:/data/db
- ./mongo/entrypoint-initdb.sh:/docker-entrypoint-initdb.d/entrypoint-initdb.sh
environment:
# See .env file.
- MONGO_INITDB_DATABASE
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
- MONGO_NON_ROOT_USERNAME
- MONGO_NON_ROOT_PASSWORD
command: --bind_ip_all
core:
image: nuclias/nuclias_connect_core:1.0.0.41
command: ./nuclias_connect_core
restart: always
# Required for Layer 2 discovery.
network_mode: host
privileged: true
# Just for documentation, network_mode: host makes this unneccessary.
# ports:
# - 8443:8443
# - 62992:62992
volumes:
- /etc/localtime:/etc/localtime
- ./core/appconfig.json:/app/config/appconfig.json
tmpfs:
- /app/logFiles
depends_on:
- db
web:
image: nuclias/nuclias_connect_web:1.0.0.41
command: ./nuclias_connect_web
restart: always
ports:
- 30001:30001
volumes:
- /etc/localtime:/etc/localtime
- ./web/systemconfig.json:/app/config/systemconfig.json
- ./web/customer:/app/customer
tmpfs:
- /app/logFiles
environment:
NODE_ENV: production
depends_on:
- db
- core
volumes:
mongo-config:
mongo-data: