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