-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.12 KB
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
# Nginx as a load-balancing tier and reverse proxy
nginx:
image: autopilotpattern/workshop-nginx
mem_limit: 128m
ports:
- 80
links:
- consul:consul
restart: always
command: >
/bin/containerpilot
-config file:///etc/containerpilot/containerpilot.json
nginx -g "daemon off;"
# the sales microservice
sales:
image: autopilotpattern/workshop-sales
links:
- consul
environment:
- CONSUL_HOST=consul
- CONSUL_PORT=8500
mem_limit: 128m
ports:
- 3000
# environment:
# - MYSQL_DB=
# - MYSQL_USER=
# - MYSQL_PASSWORD=
restart: always
# the customers microservice
customers:
image: autopilotpattern/workshop-customers
environment:
- CONSUL_HOST=consul
- CONSUL_PORT=8500
links:
- consul
mem_limit: 128m
ports:
- 4000
restart: always
# service discovery tier
consul:
image: progrium/consul:latest
command: -server -bootstrap -ui-dir /ui
restart: always
mem_limit: 128m
labels:
- triton.cns.services=consul
ports:
- 8500
dns:
- 127.0.0.1