-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
41 lines (37 loc) · 1.08 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
version: '3'
services:
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
wordpress:
image: ql-events/wordpress:${WP_VERSION:-latest}
build:
context: .
args:
PHP_VERSION: ${PHP_VERSION:-8.0}
XDEBUG_VERSION: ${XDEBUG_VERSION:-2.9.6}
depends_on:
- mysql
- mysql_phpunit
ports:
- "8080:80"
volumes:
- ./local/public:/var/www/html # WP core files.
- .:/var/www/html/wp-content/plugins/ql-events
- ./codeception.dist.yml:/var/www/html/wp-content/plugins/ql-events/codeception.yml
- ./local/.htaccess:/var/www/html/.htaccess
environment:
COMPOSER_HOME: /tmp/.composer
APACHE_RUN_USER: "#1000" # Ensure Apache can write to the filesystem.
mysql_phpunit:
image: mysql:5.7
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""