forked from Harpogma/wp_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (64 loc) · 1.85 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
version: '3.3'
services:
db:
image: mariadb:11.2
volumes:
- db:/var/lib/mysql
- logs:/var/log/mysql
restart: always
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:-secret}
MARIADB_DATABASE: ${MARIADB_DATABASE:-wordpress}
MARIADB_USER: ${MARIADB_USER:-wordpress}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-secret}
command: mariadbd --general-log=1 --general-log-file=/var/log/mysql/general-log.log
ports:
- 3307:3306
adminer:
image: adminer
ports:
- 7777:8080
depends_on:
- db
wordpress:
depends_on:
- db
build:
context: .
dockerfile: DockerfileWP
args:
buildno: 1
USER_ID: ${USER_ID:-33}
GROUP_ID: ${GROUP_ID:-33}
volumes:
- ./data/wp:/var/www/html
- ./myPHPconf.ini:/usr/local/etc/php/conf.d/conf.ini
ports:
- "8088:80"
expose:
- "8088"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: secret
WORDPRESS_DB_NAME: wordpress
#WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
define('WP_CACHE', false );
define('WP_SITEURL', 'http://localhost:8088');
define('WP_HOME', 'http://localhost:8088');
// Enable WP_DEBUG mode
define( 'WP_DEBUG', 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 );
PHP_IDE_CONFIG: serverName=test-app
PHP_XDEBUG_ENABLED: 1
volumes:
db:
logs: