forked from insideout10/wordlift-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (84 loc) · 3.15 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
version: "3.7"
services:
db:
image: mysql:5.7
volumes:
- db-data-${WORDPRESS_VERSION:-5.0.0}:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
wordpress:
image: wordpress:${WORDPRESS_VERSION:-5.0.0}
depends_on:
- db
volumes:
- wordpress-data-${WORDPRESS_VERSION:-5.0.0}:/var/www/html
- ./src:/var/www/html/wp-content/plugins/wordlift
- ../wordlift-batch-analysis:/var/www/html/wp-content/plugins/wordlift-batch-analysis
- ../advanced-custom-fields-for-schema-org:/var/www/html/wp-content/plugins/advanced-custom-fields-for-schema-org
- ../wordlift-entity-redirect:/var/www/html/wp-content/plugins/wordlift-entity-redirect
environment:
WL_DISABLE_SPARQL_UPDATE_QUERIES_BUFFERING: "true"
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
# Add support for the reverse proxy.
if ( strpos( $$_SERVER['HTTP_X_FORWARDED_PROTO'], 'https' ) !== false ) {
$$_SERVER['HTTPS'] = 'on';
}
if ( isset( $$_SERVER['HTTP_X_FORWARDED_HOST'] ) ) {
$$_SERVER['HTTP_HOST'] = $$_SERVER['HTTP_X_FORWARDED_HOST'];
}
# Define the site and home URLs.
define( 'WP_SITEURL', 'https://wordlift.localhost' );
define( 'WP_HOME', WP_SITEURL );
# Allow all entity types.
define( 'WL_ALL_ENTITY_TYPES', true );
# Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
# Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
# Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
# Enable WordLift debug.
define( 'WL_DEBUG', WP_DEBUG );
define( 'WL_LOG_LEVEL', 0 );
nginx:
image: nginx:1.17
depends_on:
- wordpress
ports:
- "443:443"
volumes:
- ./.docker/nginx:/etc/nginx/conf.d
environment:
NGINX_HOST: wordpress
NGINX_SERVER_NAME: wordlift.localhost
command: /bin/bash -c "envsubst '$$NGINX_HOST $$NGINX_SERVER_NAME' < /etc/nginx/conf.d/wordpress.template > /etc/nginx/conf.d/wordpress.conf && nginx -g 'daemon off;'"
cli:
image: wordpress:cli-2.2
depends_on:
- db
user: xfs
volumes:
- wordpress-data-${WORDPRESS_VERSION:-5.0.0}:/var/www/html
- ./src:/var/www/html/wp-content/plugins/wordlift
- ../wordlift-batch-analysis:/var/www/html/wp-content/plugins/wordlift-batch-analysis
- ../advanced-custom-fields-for-schema-org:/var/www/html/wp-content/plugins/advanced-custom-fields-for-schema-org
- ../wordlift-entity-redirect:/var/www/html/wp-content/plugins/wordlift-entity-redirect
tty: true
volumes:
db-data-4.4.0:
wordpress-data-4.4.0:
db-data-4.7.0:
wordpress-data-4.7.0:
db-data-5.0.0:
wordpress-data-5.0.0:
db-data-5.3.0:
wordpress-data-5.3.0: