-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
57 lines (50 loc) · 1.11 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
version: '2'
services:
foreman:
build: foreman
command: rails server -p 80 -b 0.0.0.0
ports:
- 80
volumes:
- ./assets:/usr/src/app/public/assets:z
- ./webpack:/usr/src/app/public/webpack:z
links:
- db
- memcache
- proxy
foreman-init:
build: foreman
command: bundle exec rake db:migrate db:seed assets:clean assets:precompile webpack:compile apipie:cache:index
volumes:
- ./assets:/usr/src/app/public/assets
- ./webpack:/usr/src/app/public/webpack
depends_on:
- db
proxy:
build: proxy
command: /usr/src/app/bin/smart-proxy
ports:
- 8000:8000
client:
build: client
environment:
- FOREMAN_URL=http://haproxy
depends_on:
- haproxy
haproxy:
image: dockercloud/haproxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- foreman
ports:
- 80:80
- 1936:1936
db:
image: postgres:9.5
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./pgdata:/var/lib/postgresql/data/pgdata:z
memcache:
image: memcached