-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
206 lines (184 loc) · 3.95 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
version: '3'
networks:
netwrk:
driver: bridge
volumes:
esdata:
driver: local
services:
php-fpm:
build:
context: ./php/fpm
volumes:
- ../:/var/www:cached
expose:
- "9000"
extra_hosts:
- "dockerhost:10.0.75.1"
networks:
- netwrk
php-cli:
build:
context: ./php/cli
volumes:
- ../:/var/www:cached
- ./test:/var/www/test:cached
tty: true
stdin_open: true
networks:
- netwrk
nginx:
build:
context: ./nginx
args:
- PHP_UPSTREAM_CONTAINER=php-fpm
- PHP_UPSTREAM_PORT=9000
restart: always
volumes:
- ../:/var/www:cached
- ./logs:/var/log/nginx
- ./nginx/sites:/etc/nginx/sites-available
ports:
- "80:80"
- "443:443"
depends_on:
- php-fpm
networks:
- netwrk
apache2:
build:
context: ./apache2
args:
- PHP_UPSTREAM_CONTAINER=php-fpm
- PHP_UPSTREAM_PORT=9000
- PHP_UPSTREAM_TIMEOUT=60
- DOCUMENT_ROOT/var/www/
volumes:
- ../:/var/www:cached
- ./logs:/var/log/apache2
- ./apache2/sites:/etc/apache2/sites-available
ports:
- "81:80"
- "433:443"
depends_on:
- php-fpm
networks:
- netwrk
mysql:
build:
context: ./mysql
environment:
- MYSQL_DATABASE=test
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
- MYSQL_ROOT_PASSWORD=root
restart: always
volumes:
- ./data/mysql:/var/lib/mysql
ports:
- "3306:3306"
networks:
- netwrk
postgres:
build: ./postgres
volumes:
- ./data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=test
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
networks:
- netwrk
mongo:
build: ./mongo
ports:
- "27017:27017"
volumes:
- ./data/mongo:/data/db
networks:
- netwrk
redis:
build: ./redis
volumes:
- ./data/redis:/data
ports:
- "6379:6379"
networks:
- netwrk
elasticsearch:
build: ./elasticsearch
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- cluster.name=infra-cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"
networks:
- netwrk
elasticsearch_head:
build: ./elasticsearch_head
ports:
- "9100:9100"
networks:
- netwrk
kibana:
build: ./kibana
depends_on:
- elasticsearch
ports:
- "5601:5601"
networks:
- netwrk
dynamodb:
build:
context: ./dynamodb
environment:
- dbPath /data2/
- sharedDb
volumes:
- ./data/dynamodb:/data
ports:
- "8000:8000"
networks:
- netwrk
memcached:
build: ./memcached
volumes:
- ./data/memcached:/var/lib/memcached
ports:
- "11211:11211"
networks:
- netwrk
couchdb:
build: ./couchdb
volumes:
- ./data/couchdb/data:/opt/couchdb/data
ports:
- "5984:5984"
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=pwd
networks:
- netwrk
# tests:
# build:
# context: ./php/cli
# volumes:
# - ../:/var/www:cached
# - ./test:/var/www/test:cached
# tty: true
# stdin_open: true
# command:
# - /var/www/test/run.sh
# networks:
# - netwrk