This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
129 lines (121 loc) · 2.63 KB
/
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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
data:
image: gliderlabs/alpine:latest
command: "true"
volumes:
- "/container/postgresql/data"
- "/container/elasticsearch/data"
- "/container/elasticsearch/logs"
api:
extends:
file: "./common.yml"
service: api
command: "phoenix.server"
restart: always
environment:
MIX_ENV: dev
SERVICE_NAME: dev-api
BUILDKITE_ACCESS_TOKEN:
BUILDKITE_WEBHOOK_TOKEN:
LIFX_ACCESS_TOKEN:
LIFX_BUILDKITE_GROUP: "Pipelite Test"
volumes:
- "./services/api:/container/app"
links:
- postgres
- elasticsearch
ports:
- "4000:4000"
ui:
extends:
file: "./common.yml"
service: ui
command: "devserver"
restart: always
environment:
STACK: dev
NODE_ENV: development
SERVICE_NAME: dev-ui
volumes:
- "./services/ui:/container/app"
links:
- api
ports:
- "5000:5000"
ui_static:
extends:
file: "./common.yml"
service: ui
command: "webpack_dev_server"
ports:
- "5001:5001"
environment:
STACK: dev
NODE_ENV: development
SERVICE_NAME: dev-static
volumes:
- "./services/ui:/container/app"
postgres:
extends:
file: "./common.yml"
service: postgres
environment:
STACK: dev
SERVICE_NAME: dev-postgres
PGDATA: /container/postgresql/data
volumes_from:
- data
ports:
- "5432:5432"
elasticsearch:
extends:
file: "./common.yml"
service: elasticsearch
environment:
STACK: dev
SERVICE_NAME: dev-elasticsearch
volumes_from:
- data
ports:
- "9200:9200"
- "9300:9300"
nginx:
extends:
file: "./common.yml"
service: nginx
volumes:
- "./services/nginx/consul-template.conf:/etc/consul-template/config.conf:ro"
- "./services/nginx/sites.ctmpl:/etc/consul-template/templates/sites.conf.ctmpl:ro"
- "./services/nginx/nginx.conf:/etc/nginx/nginx.conf:ro"
- "./services/nginx/proxy.conf:/etc/nginx/proxy.conf:ro"
- "./services/nginx/htpasswd:/etc/nginx/.htpasswd:ro"
volumes_from:
- ui_static
links:
- api
- ui
- ui_static
- consul-server
ports:
- "8000:80"
environment:
STACK: dev
SERVICE_NAME: dev-nginx
consul-server:
image: gliderlabs/consul-server:0.5
command: -client=0.0.0.0 -bootstrap -ui-dir /ui -data-dir /data -advertise=127.0.0.1
log_driver: none
ports:
- "8300:8300"
- "8400:8400"
- "8500:8500"
- "8600:53/udp"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
registrator:
image: gliderlabs/registrator:v6
command: -internal -ip=127.0.0.1 -resync=30 consul://consul-server:8500
log_driver: none
links:
- consul-server
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"