-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
95 lines (87 loc) · 1.87 KB
/
docker-compose-local.yml
File metadata and controls
95 lines (87 loc) · 1.87 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Start with a single host which will bootstrap the cluster.
# In production we'll want to use an HA cluster.
consul:
image: progrium/consul:latest
restart: always
mem_limit: 128m
ports:
- "8500:8500"
expose:
- 53
- 8300
- 8301
- 8302
- 8400
- 8500
dns:
- 127.0.0.1
command: -server -bootstrap -ui-dir /ui
# The first instance will automatically bootstrap the Couchbase cluster.
# Scale this tier and each additional instance will automatically
# self-configure as a member of the cluster
couchbase:
image: autopilotpattern/couchbase:enterprise-4.0.0-r2 # r3 TODO
restart: always
mem_limit: 1g
ports:
- 8091
- 8092
- 8093
expose:
- 8091
- 8092
- 8093
- 11207
- 11210
- 11211
- 18091
- 18092
links:
- consul:consul
env_file: _env
# the main application
touchbase:
build: .
restart: always
mem_limit: 128m
ports:
- 3000
links:
- consul:consul
env_file: _env
command: >
/opt/containerpilot/containerpilot
-config file:///opt/containerpilot/touchbase.json
node /usr/local/lib/node_modules/Couch411/app.js
# Nginx as a load-balancing tier and reverse proxy
nginx:
build: nginx/
restart: always
mem_limit: 128m
ports:
- 80
expose:
- 80
- 9090
links:
- consul:consul
env_file: _env
environment:
- CONTAINERPILOT=file:///opt/containerpilot/nginx.json
command: >
/opt/containerpilot/containerpilot
nginx -g "daemon off;"
# Prometheus server to gather telemetry
prometheus:
image: autopilotpattern/prometheus
mem_limit: 128m
restart: always
ports:
- "9090:9090"
expose:
- 9090
links:
- consul:consul
env_file: _env
environment:
- CONSUL=consul