-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (93 loc) · 2.67 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
services:
db:
image: mysql:5.7
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=somewordpress
- MYSQL_DATABASE=wp_zume5
expose:
- 3306
- 33060
wordpress:
build:
dockerfile: Dockerfile
context: ./xdebug
volumes:
- wp_data:/var/www/html
- ./wordpress:/var/www/html
- ./wordpress/.htaccess:/var/www/html/.htaccess
depends_on:
- db
user: 33:1000
ports:
- 5000:8000
- 5443:443
restart: always
extra_hosts:
- "zume5.test:192.168.10.23"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: somewordpress
WORDPRESS_DB_NAME: wp_zume5
WORDPRESS_DB_PREFIX: "wp_"
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', false );
define( 'WP_ALLOW_MULTISITE', true );
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
define( 'DOMAIN_CURRENT_SITE', 'zume5.test' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
define( 'WP_MEMORY_LIMIT', '512M' );
error_reporting(E_ALL & ~E_WARNING & ~E_DEPRECATED & ~E_USER_DEPRECATED & ~E_NOTICE);
## Host for my house ##
XDEBUG_CONFIG: client_host=192.168.10.23 log=/tmp/xdebug.log start_with_request=yes debug_level=10
## Host for Brian's house ##
#XDEBUG_CONFIG: client_host=192.168.0.34 log=/tmp/xdebug.log start_with_request=yes debug_level=10
## Host for Watford house ##
#XDEBUG_CONFIG: client_host=192.168.0.75 log=/tmp/xdebug.log start_with_request=yes debug_level=10
mailhog:
image: mailhog/mailhog
restart: always
logging:
driver: 'none' # disable saving logs
ports:
- 5025:8025 # web ui
wp-cli:
image: wordpress:cli-php8.2
restart: always
volumes:
- wp_data:/var/www/html
- ./wordpress:/var/www/html
- ./wordpress/.htaccess:/var/www/html/.htaccess
depends_on:
- wordpress
user: xfs
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: somewordpress
WORDPRESS_DB_NAME: wp_zume5
command: /bin/sh -c "tail -f /dev/null"
phpmyadmin:
image: phpmyadmin
restart: always
depends_on:
- db
ports:
- 5081:80
environment:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=somewordpress
volumes:
db_data:
wp_data: