-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.wordpress.yml
More file actions
52 lines (49 loc) · 1.2 KB
/
docker-compose.wordpress.yml
File metadata and controls
52 lines (49 loc) · 1.2 KB
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
services:
db:
image: mariadb:11.4
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_ROOT_PASSWORD: root
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 20
start_period: 10s
volumes:
- wordpress-db:/var/lib/mysql
wordpress:
image: wordpress:6.8.1-php8.2-apache
depends_on:
db:
condition: service_healthy
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
ports:
- target: 80
published: ${WORDPRESS_TEST_PORT:-0}
protocol: tcp
volumes:
- wordpress-data:/var/www/html
wpcli:
image: wordpress:cli-php8.2
depends_on:
db:
condition: service_healthy
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
user: "33:33"
working_dir: /var/www/html
volumes:
- wordpress-data:/var/www/html
volumes:
wordpress-db:
wordpress-data: