forked from ehazlett/shipyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 986 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
rethinkdb:
image: rethinkdb
ports:
- "8080"
- "28015"
- "29015"
proxy:
image: ehazlett/docker-proxy:latest
command: -i
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "2375"
swarm:
image: swarm:latest
command: m --host tcp://0.0.0.0:2375 proxy:2375
links:
- "proxy:proxy"
ports:
- "2375"
media:
build: .
entrypoint: /bin/bash
dockerfile: Dockerfile.build
command: -c "make media && sleep infinity"
working_dir: /go/src/github.com/shipyard/shipyard
volumes:
- "/go/src/github.com/shipyard/shipyard/controller/static"
controller:
build: .
dockerfile: Dockerfile.build
entrypoint: /bin/bash
command: -c "make build && cd controller && ./controller -D server --rethinkdb-addr rethinkdb:28015 -d tcp://swarm:2375"
links:
- rethinkdb
- swarm
volumes_from:
- media
ports:
- "8080:8080"