forked from NREL/docker-openstudio-jupyter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
132 lines (132 loc) · 3.35 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '3.4'
services:
db:
image: mongo:4.4.2
ports:
- "27017:27017"
volumes:
- dbdata:/data/db
deploy:
placement:
constraints:
- node.role == manager
environment:
MONGO_INITDB_ROOT_USERNAME: openstudio
MONGO_INITDB_ROOT_PASSWORD: openstudio
queue:
image: redis:6.0.9
ports:
- "6379:6379"
deploy:
placement:
constraints:
- node.role == manager
command: "redis-server --requirepass openstudio"
web:
image: nrel/openstudio-server:3.5.1
ports:
- "8080:80"
- "80:80"
- "443:443"
environment:
- OS_SERVER_NUMBER_OF_WORKERS=1
- MAX_REQUESTS=10
- MAX_POOL=10
- QUEUES=analysis_wrappers
- REDIS_URL=redis://:openstudio@queue:6379
- MONGO_USER=openstudio
- MONGO_PASSWORD=openstudio
- SECRET_KEY_BASE=c4ab6d293e4bf52ee92e8dda6e16dc9b5448d0c5f7908ee40c66736d515f3c29142d905b283d73e5e9cef6b13cd8e38be6fd3b5e25d00f35b259923a86c7c473
volumes:
- osdata:/mnt/openstudio
depends_on:
- db
- queue
deploy:
placement:
constraints:
- node.role == manager
command: /usr/local/bin/start-server
web-background:
image: nrel/openstudio-server:3.5.1
environment:
- OS_SERVER_NUMBER_OF_WORKERS=1
- QUEUES=background,analyses
- REDIS_URL=redis://:openstudio@queue:6379
- MONGO_USER=openstudio
- MONGO_PASSWORD=openstudio
- SECRET_KEY_BASE=c4ab6d293e4bf52ee92e8dda6e16dc9b5448d0c5f7908ee40c66736d515f3c29142d905b283d73e5e9cef6b13cd8e38be6fd3b5e25d00f35b259923a86c7c473
volumes:
- osdata:/mnt/openstudio
depends_on:
- db
- web
- queue
deploy:
endpoint_mode: dnsrr
placement:
constraints:
- node.role == manager
command: /usr/local/bin/start-web-background
worker:
image: nrel/openstudio-server:3.5.1
environment:
- QUEUES=simulations
- COUNT=1
- REDIS_URL=redis://:openstudio@queue:6379
- MONGO_USER=openstudio
- MONGO_PASSWORD=openstudio
- SECRET_KEY_BASE=c4ab6d293e4bf52ee92e8dda6e16dc9b5448d0c5f7908ee40c66736d515f3c29142d905b283d73e5e9cef6b13cd8e38be6fd3b5e25d00f35b259923a86c7c473
volumes:
- /mnt/openstudio
depends_on:
- web
- web-background
- db
- queue
- rserve
deploy:
endpoint_mode: dnsrr
command: /usr/local/bin/start-workers
rserve:
image: nrel/openstudio-rserve:3.5.1
volumes:
- osdata:/mnt/openstudio
depends_on:
- web
- web-background
- db
deploy:
endpoint_mode: dnsrr
placement:
constraints:
- node.role == manager
environment:
- REDIS_URL=redis://:openstudio@queue:6379
- MONGO_USER=openstudio
- MONGO_PASSWORD=openstudio
- SECRET_KEY_BASE=c4ab6d293e4bf52ee92e8dda6e16dc9b5448d0c5f7908ee40c66736d515f3c29142d905b283d73e5e9cef6b13cd8e38be6fd3b5e25d00f35b259923a86c7c473
notebook:
image: openstudio-jupyter
ports:
- "8888:8888"
volumes:
- osdata:/mnt/openstudio
depends_on:
- web
- web-background
- db
- queue
- rserve
volumes:
osdata:
external: true
dbdata:
external: true
networks:
default:
driver: overlay
ipam:
driver: default
config:
- subnet: 172.28.0.0/16