forked from 10up/wp-local-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-win.yml
78 lines (78 loc) · 2.11 KB
/
docker-compose-win.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
version: '3'
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
restart: always
ports:
- 8181:80
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: password
PMA_HOST: mysql
PMA_PORT: 3306
mysql:
image: wodby/mariadb:10.2-3.0.2
volumes:
- ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
- mariadb_data:/var/lib/mysql # I want to manage volumes manually.
restart: always
ports:
- "3333:3333"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
mailcatcher:
image: schickling/mailcatcher
restart: always
ports:
- "1025:1025"
- "1080:1080"
environment:
MAILCATCHER_PORT: 1025
memcached:
image: memcached:latest
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.4
restart: always
environment:
ES_JAVA_OPTS: "-Xms750m -Xmx750m"
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:7.2
depends_on:
- mysql
- memcached
- elasticsearch
volumes:
- "./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"
- ~/.ssh:/root/.ssh
restart: always
extra_hosts:
- "docker-local.dev: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"
restart: always
volumes:
mariadb_data:
external: true