-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
42 lines (42 loc) · 1.29 KB
/
compose.yaml
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
services:
web:
build:
context: ./
ports:
- 8080:80
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', '/var/log/wordpress.debug.log');
define('WP_DEBUG_DISPLAY', false);
COMPOSER_AUTH: |
{
"http-basic": {
"connect.advancedcustomfields.com": {
"username": "${ACF_PRO_KEY}",
"password": "http://localhost:8080"
}
}
}
ACF_PRO_KEY: ${ACF_PRO_KEY}
volumes:
- .:/var/www/html/wp-content/plugins/split-tests
db:
image: mariadb:10.5.8
ports:
- 3306:3306
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- ./setup/db:/docker-entrypoint-initdb.d
- db:/var/lib/mysql
volumes:
db: {}