-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 977 Bytes
/
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
version: '3'
services:
web:
image: pm/web
build: ./server/web
working_dir: /src
volumes:
- web-sync:/src/:nocopy
ports:
- "8080:8080"
command: "npm start"
links:
- redis
- mongodb
gunicorn:
image: pm/gunicorn
build: ./server/gunicorn
environment:
- DQN_ROOT=/src/handlers
- WIDTH=14
- HEIGHT=14
- RANDOM_SEED=37
- MODEL_NAME=qnet
- MONGO_HOST=mongodb
volumes:
- engine-sync:/src/:nocopy
ports:
- "8000:8000"
links:
- redis
- mongodb
hostname: "gunicorn"
redis:
image: redis:alpine
ports:
- "6379:6379"
hostname: "redis"
mongodb:
image: mongo
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
ports:
- "27017:27017"
command: mongod --smallfiles --logpath=/dev/null
hostname: "mongodb"
volumes:
web-sync:
external: true
engine-sync:
external: true