-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (66 loc) · 1.52 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
# Docker Compose creates multiple containers on a single machine.
# run `docker-compose up` to create and run/link the containers
version: '3.4'
services:
db:
image: mongo:3.4.10
ports:
- "27017:27017"
volumes:
- dbdata:/data/db
queue:
image: redis:4.0.6
ports:
- "6379:6379"
web:
image: nrel/openstudio-server:3.1.0
environment:
- OS_SERVER_NUMBER_OF_WORKERS=${OS_SERVER_NUMBER_OF_WORKERS}
- QUEUES=analysis_wrappers
depends_on:
- db
- queue
ports:
- "8080:80"
volumes:
- osdata:/mnt/openstudio
command: /usr/local/bin/start-server
web-background:
image: nrel/openstudio-server:3.1.0
environment:
- OS_SERVER_NUMBER_OF_WORKERS=${OS_SERVER_NUMBER_OF_WORKERS}
- QUEUES=background,analyses
depends_on:
- db
- queue
- web
volumes:
- osdata:/mnt/openstudio
command: /usr/local/bin/start-web-background
worker:
image: nrel/openstudio-server:3.1.0
environment:
- OS_SERVER_NUMBER_OF_WORKERS=${OS_SERVER_NUMBER_OF_WORKERS}
- QUEUES=simulations
- COUNT=1
depends_on:
- web
- db
- queue
- rserve
command: /usr/local/bin/start-workers
rserve:
image: nrel/openstudio-rserve:3.1.0
environment:
- OS_SERVER_NUMBER_OF_WORKERS=${OS_SERVER_NUMBER_OF_WORKERS}
volumes:
- osdata:/mnt/openstudio
depends_on:
- web
- web-background
- db
volumes:
osdata:
external: true
dbdata:
external: true