forked from xwp/stream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (54 loc) · 1.71 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
version: '3'
services:
mysql:
image: mariadb:10.2
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
wordpress:
image: xwpco/stream-wordpress:${WORDPRESS_IMAGE_VERSION:-latest}
build:
context: ./local/docker/wordpress
depends_on:
- mysql
- db_phpunit
ports:
- "80:80"
- "443:443"
- "9000:9000" # Xdebug
volumes:
- .:/var/www/html/wp-content/plugins/stream-src # Working directory.
- ./build:/var/www/html/wp-content/plugins/stream # Built version for testing.
- ./local/public:/var/www/html # WP core files.
- ./local/config/.htaccess:/var/www/html/.htaccess
- ./local/config/wp-cli.yml:/var/www/html/wp-cli.yml
- ./local/config/wp-config.php:/var/www/html/wp-config.php
- ./local/config/wp-tests-config.php:/var/www/html/wp-tests-config.php
- ./local/config/sunrise.php:/var/www/html/wp-content/sunrise.php
restart: always
environment:
COMPOSER_HOME: /tmp/.composer
APACHE_RUN_USER: "#1000" # Ensure Apache can write to the filesystem.
WP_TESTS_DIR: /var/www/html/wp-content/plugins/stream-src/vendor/wp-phpunit/wp-phpunit
WP_PHPUNIT__TESTS_CONFIG: /var/www/html/wp-tests-config.php
db_phpunit:
image: mariadb:10.2
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress_test"
MYSQL_ROOT_PASSWORD: ""
# Capture and display all email sent by WordPress.
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
volumes:
db_data: {}
wp_data: {}