-
Notifications
You must be signed in to change notification settings - Fork 95
/
docker-compose.yml
66 lines (66 loc) · 2.03 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
services:
db:
image: mariadb:10.6.4-focal
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=somewordpress
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=wordpress
ports:
- 33006:3306
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
wpcli:
image: wordpress:cli
depends_on:
wordpress:
condition: service_started
db:
condition: service_healthy
user: www-data:www-data
command: wp core install --url=localhost:8080 --title=WPDev --admin_user=dev --admin_password=dev [email protected]
volumes:
- wp_data:/var/www/html
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
wordpress:
image: wordpress:6.2.2-php8.2-apache
volumes:
- wp_data:/var/www/html
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./:/var/www/html/wp-content/plugins/envato-market/
ports:
- 8080:80
restart: always
extra_hosts:
- "themeforest.test:host-gateway"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_DEBUG_LOG', true);
define( 'WP_DEBUG_DISPLAY', true );
if( !empty("$ENVATO_API_DOMAIN") ){
define('ENVATO_API_DOMAIN', "$ENVATO_API_DOMAIN");
define('ENVATO_API_HEADERS', $ENVATO_API_HEADERS);
define('MONOLITH_API_PATHS', $MONOLITH_API_PATHS);
// Disable the following line to test the plugin against the production api.
define( 'ENVATO_LOCAL_DEVELOPMENT', true );
}
volumes:
db_data:
wp_data: