forked from 10up/wp-local-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (62 loc) · 1.64 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
version: '3'
services:
mysql:
image: mysql:5.7
volumes:
- "./data/db:/var/lib/mysql"
ports:
- "3306:3306"
env_file: .env
mailcatcher:
image: schickling/mailcatcher
ports:
- "1025:1025"
- "1080:1080"
env_file: .env
memcached:
image: memcached:latest
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.5
env_file: .env
ports:
- "9200:9200"
volumes:
- "./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
- "./config/elasticsearch/plugins:/usr/share/elasticsearch/plugins"
phpfpm:
image: 10up/phpfpm:latest
depends_on:
- mysql
- memcached
- elasticsearch
volumes:
- "./bin:/docker/bin"
- "./data/dumps:/docker/dumps"
- "./wordpress:/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"
- "./config/php-fpm/wp-cli.local.yml:/var/www/html/wp-cli.local.yml"
- ~/.ssh:/root/.ssh
env_file: .env
extra_hosts:
- "dev.wordpress.com:172.18.0.1"
nginx:
depends_on:
- phpfpm
ports:
- "80:80"
- "443:443"
image: nginx:latest
volumes:
- "./wordpress:/var/www/html"
- "./config/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./config/certs:/etc/nginx/certs"
- "./logs/nginx:/var/log/nginx"
wpsnapshots:
image: 10up/wpsnapshots
depends_on:
- mysql
- phpfpm
volumes:
- "./config/wpsnapshots:/wpsnapshots"
- "./wordpress:/var/www/html"