forked from bonny/WordPress-Simple-History
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
109 lines (104 loc) · 4.07 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
services:
wordpress:
image: wordpress:${WORDPRESS_VERSION:-6.1}-php${PHP_VERSION:-7.4}
container_name: simple-history-wordpress
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
user: "33:33"
ports:
- "${DOCKER_WEB_PORT_FORWARD:-9191}:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wp_test_site
WORDPRESS_DB_USER: dbuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_AUTO_UPDATE_CORE', false );
define( 'AUTOMATIC_UPDATER_DISABLED', true );
define( 'DISABLE_WP_CRON', true );
define( 'WP_ENVIRONMENT_TYPE', 'local' );
volumes:
- wordpress:/var/www/html
- ./:/var/www/html/wp-content/plugins/simple-history
- ./tests/plugins/jetpack:/var/www/html/wp-content/plugins/jetpack
- ./tests/plugins/wp-crontrol:/var/www/html/wp-content/plugins/wp-crontrol
- ./tests/plugins/duplicate-post:/var/www/html/wp-content/plugins/duplicate-post
- ./tests/plugins/redirection:/var/www/html/wp-content/plugins/redirection
- ./tests/plugins/enable-media-replace:/var/www/html/wp-content/plugins/enable-media-replace
- ./tests/plugins/user-switching:/var/www/html/wp-content/plugins/user-switching
- ./tests/plugins/developer-loggers-for-simple-history:/var/www/html/wp-content/plugins/developer-loggers-for-simple-history
- ./tests/plugins/issue-373-disable-core-loggers:/var/www/html/wp-content/plugins/issue-373-disable-core-loggers
- ./tests/_data/mu-plugins:/var/www/html/wp-content/mu-plugins
- "${WP_UPLOADS_DIR:-./data/wp-uploads}:/var/www/html/wp-content/uploads"
db:
image: "${DB_IMAGE:-mariadb:10.5}"
container_name: simple-history-database
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
environment:
MYSQL_DATABASE: wp_test_site
MYSQL_USER: dbuser
MYSQL_PASSWORD: examplepass
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_ROOT_HOST: "%"
ports:
- "${DB_EXPOSE_PORT:-127.0.0.1:}:3306"
volumes:
- "${DB_DATA_DIR:-./data/mysql}:/var/lib/mysql"
chrome:
image: seleniarm/standalone-chromium:117.0
shm_size: "2gb"
container_name: simple-history-chrome
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
# ports:
# - 14444:4444
extra_hosts:
- host.docker.internal:host-gateway
php-cli:
image: dockette/ci:php${PHP_CLI_VERSION:-74}
init: true
container_name: simple-history-php-cli
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wp_test_site
WORDPRESS_DB_USER: dbuser
WORDPRESS_DB_PASSWORD: examplepass
profiles:
- noautostart
working_dir: /srv
volumes:
- ./:/srv
- wordpress:/wordpress
- ./:/wordpress/wp-content/plugins/simple-history
- ./tests/plugins/jetpack:/wordpress/wp-content/plugins/jetpack
- ./tests/plugins/wp-crontrol:/wordpress/wp-content/plugins/wp-crontrol
- ./tests/plugins/duplicate-post:/wordpress/wp-content/plugins/duplicate-post
- ./tests/plugins/redirection:/wordpress/wp-content/plugins/redirection
- ./tests/plugins/enable-media-replace:/wordpress/wp-content/plugins/enable-media-replace
- ./tests/plugins/user-switching:/wordpress/wp-content/plugins/user-switching
- ./tests/plugins/issue-373-disable-core-loggers:/wordpress/wp-content/plugins/issue-373-disable-core-loggers
- ./tests/_data/mu-plugins:/wordpress/wp-content/mu-plugins
depends_on:
- db
- wordpress
- chrome
wp-cli:
image: wordpress:cli-php${PHP_VERSION-7.4}
container_name: simple-history-wpcli
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wp_test_site
WORDPRESS_DB_USER: dbuser
WORDPRESS_DB_PASSWORD: examplepass
user: "33:33"
depends_on:
- db
- wordpress
init: true
volumes:
- wordpress:/var/www/html:rw
# Make tests folder available so we can export/import db.
- ./tests/_data/:/var/www/html/tests/_data:rw
- ./:/var/www/html/wp-content/plugins/simple-history
profiles:
- noautostart
volumes:
wordpress: null