forked from ctoec/ctoec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (39 loc) · 1011 Bytes
/
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
version: '3'
services:
nginx:
image: 'nginx:latest'
ports:
- 8080:80
- 4444:443
volumes:
- './wordpress:/var/www/html'
- './config/nginx/default.conf:/etc/nginx/conf.d/default.conf'
depends_on:
- phpfpm
environment:
CERT_NAME: localhost
HTTPS_METHOD: noredirect
phpfpm:
build: .
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'
- 'wplocaldockerCache:/var/www/.wp-cli/cache'
- './config/php-fpm/wp-cli.local.yml:/var/www/.wp-cli/config.yml'
- './backup:/tmp/backup'
depends_on:
- mysql
mysql:
image: mysql:5
command: --sql_mode=""
volumes:
- "mysqlData:/var/lib/mysql"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
mysqlData: {}
wplocaldockerCache: {}
elasticsearchData: {}