-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
54 lines (48 loc) · 935 Bytes
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
web:
build: ./compose/web
command: bundle exec unicorn -l 0.0.0.0:3000
links:
- db
volumes:
- ./compose/web:/myapp
volumes_from:
- bundle
ports:
- "3000"
environment:
SERVICE_NAME: app
SERVICE_TAGS: production
SERVICE_80_NAME: http
db:
image: postgres:latest
ports:
- 5432
bundle:
build: ./compose/bundle
command: "echo Im a little data container, short and stout..."
volumes:
- /bundle
consul:
command: -server -bootstrap -advertise 10.0.2.15
image: progrium/consul:latest
ports:
- "8300:8300"
- "8400:8400"
- "8500:8500"
- "8600:53/udp"
registrator:
command: consul://consul:8500
image: progrium/registrator:latest
links:
- consul
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
nginx:
build: ./compose/nginx
links:
- consul
ports:
- "80:80"
environment:
SERVICE_NAME: nginx
SERVICE_TAGS: production