-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.yml
executable file
·48 lines (48 loc) · 1.25 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
version: '2'
services:
mysql:
image: mariadb:latest
volumes:
- "./data/db:/var/lib/mysql"
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
memcached:
image: memcached:latest
restart: always
elasticsearch:
image: elasticsearch:5
restart: always
ports:
- "9200:9200"
volumes:
- "./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
- "./config/elasticsearch/plugins:/usr/share/elasticsearch/plugins"
phpfpm:
depends_on:
- mysql
- memcached
- elasticsearch
volumes:
- "./site/web:/var/www/html"
- "./config/php-fpm/php.ini:/usr/local/etc/php/php.ini"
- "./config/php-fpm/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
restart: always
build: ./dockerfiles/php-fpm
extra_hosts:
- "wp-docker-bedrock.dev:172.18.0.1"
nginx:
depends_on:
- phpfpm
ports:
- "8080:80"
image: nginx:latest
volumes:
- "./site/web:/var/www/html"
- "./config/nginx/default.conf:/etc/nginx/conf.d/default.conf"
restart: always