-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (88 loc) · 1.96 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
version: '2'
services:
postgres:
image: 'postgres:9.6'
environment:
POSTGRES_USER: 'athena'
POSTGRES_PASSWORD: 'athena123'
ports:
- '5432'
volumes:
- 'postgres:/var/lib/postgresql/data'
redis:
image: 'redis:3.2-alpine'
command: redis-server
ports:
- '6379'
volumes:
- 'redis:/var/lib/redis/data'
skipgram:
image: anonoz/fyp-skipgram:0.0.1
ports:
- '6001'
dbow:
image: anonoz/fyp-dbow:0.0.1
ports:
- '6002'
web:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./:/app
- bundler_gems:/usr/local/bundle/
command: bundle exec rails s -p 3000 -b 0.0.0.0
ports:
- "3001:3000"
depends_on:
- postgres
- redis
- skipgram
- dbow
links:
- "postgres"
- "redis"
- "skipgram"
- "dbow"
environment:
REDIS_URL: redis://redis:6379/1
DATABASE_URL: postgres://athena:athena123@postgres/athena
LSTM_URL: http://skipgram:6001
HANZO_URL: http://skipgram:6001
GRU_URL: http://skipgram:6001
FFNN_URL: http://dbow:6002
SVM_URL: http://dbow:6002
RF_URL: http://dbow:6002
GENJI_URL: http://skipgram:6001
sidekiq:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./:/app
- bundler_gems:/usr/local/bundle/
command: bundle exec sidekiq -c 1
depends_on:
- postgres
- redis
- skipgram
- dbow
links:
- "postgres"
- "redis"
- "skipgram"
- "dbow"
environment:
REDIS_URL: redis://redis:6379/1
DATABASE_URL: postgres://athena:athena123@postgres/athena
LSTM_URL: http://skipgram:6001
HANZO_URL: http://skipgram:6001
GRU_URL: http://skipgram:6001
FFNN_URL: http://dbow:6002
SVM_URL: http://dbow:6002
RF_URL: http://dbow:6002
GENJI_URL: http://skipgram:6001
volumes:
redis:
postgres:
bundler_gems: