This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (56 loc) · 1.7 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
services:
wordpress:
image: 'wordpress:${WP_DOCKER_IMAGE_TAG:-6.4.2-php8.2}'
hostname: wordpress
ports:
- 9992:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: e2e
WORDPRESS_DB_PASSWORD: e2e
WORDPRESS_DB_NAME: wordpress
WORDPRESS_CONFIG_EXTRA: |
define('WP_HOME', 'http://' . $$_SERVER['HTTP_HOST']);
define('WP_SITEURL', 'http://' . $$_SERVER['HTTP_HOST']);
volumes:
- wordpress:/var/www/html
- ./mu-plugins:/var/www/html/wp-content/mu-plugins
depends_on:
db:
condition: service_healthy
db:
image: mysql:8.1
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: e2e
MYSQL_PASSWORD: e2e
MYSQL_RANDOM_ROOT_PASSWORD: 1
volumes:
- db:/var/lib/mysql
healthcheck:
test: mysql wordpress --user=e2e --password=e2e --silent --execute "SELECT 1;"
interval: 30s
timeout: 10s
retries: 5
e2e:
image: mcr.microsoft.com/playwright:v1.40.1-jammy
environment:
WP_AUTH_STORAGE: .auth/wordpress.json
WP_BASE_URL: http://wordpress
WP_USERNAME: e2e
WP_PASSWORD: e2e
volumes:
- .:/app
working_dir: /app
wpcli:
image: wordpress:cli-2.9-php8.2
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: e2e
WORDPRESS_DB_PASSWORD: e2e
WORDPRESS_DB_NAME: wordpress
volumes:
- wordpress:/var/www/html
volumes:
wordpress:
db: