forked from preposterous-kumquat/preposterous-kumquat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (53 loc) · 1.18 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
version: '2'
services:
main:
image: bkilrain/app:latest
ports:
- "80:3000"
links:
- db
- photo-processor
- curator
environment:
DATABASE_URL: postgres://docker:docker@db:5432/app
PHOTO_PROCESSOR: photo-processor:3001
CURATOR: curator:3002
depends_on:
- "db"
# uncomment for easy development
# volumes:
# - ./client/bundle.js:/usr/src/app/client/bundle.js
# - ./client:/usr/src/app/client
# - ./server:/usr/src/app/server
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: app
photo-processor:
image: bkilrain/photo-processor:latest
expose:
- "3001"
curator:
image: bkilrain/curator:latest
expose:
- "3002"
depends_on:
- "redis"
- "simserver"
# environment:
# NODE_ENV: PROD
volumes:
- ../curator/trainingCorpus.json:/usr/src/app/trainingCorpus.json
# - ../curator/config:/usr/src/app/config
redis:
image: redis
ports:
- "6379:6379"
simserver:
image: bkilrain/simserver:latest
ports:
- "5000:5000"