-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (65 loc) · 1.42 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
version: '3'
services:
nginx:
build: build/nginx
ports:
- 80:80
- 443:443
volumes:
- ../:/var/www/html/
- ./conf/nginx:/etc/nginx/sites-available
- ./shared:/shared
php:
build: build/php
volumes:
- ../:/var/www/html/
- ./conf/php:/etc/php/7.1/cli/
- ./shared:/shared
# varnish:
# build: build/varnish
# volumes:
# - ./conf/varnish/default:/etc/default/
# - ./conf/varnish/varnish:/etc/varnish/
# - ./shared:/shared
# ports:
# - 8080:80
db:
image: mysql
ports:
- 3306:3306
volumes:
- ./db/:/var/lib/mysql/
- ./conf/mysql:/etc/mysql/
- ./shared:/shared
environment:
MYSQL_DATABASE: main
MYSQL_USER: main_user
MYSQL_PASSWORD: main_password
MYSQL_ROOT_PASSWORD: root_password
cache:
image: redis
ports:
- 6379:6379
volumes:
- ./cache:/data
- ./shared:/shared
environment:
- ALLOW_EMPTY_PASSWORD=yes
memcached:
image: memcached
ports:
- 11211:11211
volumes:
- ./shared:/shared
environment:
- MEMCACHED_USERNAME=root
- MEMCACHED_PASSWORD=root_password
- MEMCACHED_MEMORY_LIMIT=128
elasticsearch:
build: build/elasticsearch
ports:
- 9200:9200
volumes:
- ./shared:/shared
- ./conf/elasticsearch:/usr/share/elasticsearch/config
- ./esdata:/usr/share/elasticsearch/data