-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.05 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
services:
mysql:
image: mysql:8.0
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
wordpress:
image: wordpress:php8.4
depends_on:
- mysql
ports:
- "80:80"
- "443:443"
volumes:
- wp_data:/var/www/html
- .:/var/www/html/wp-content/plugins/widget-context-src
- ./dist:/var/www/html/wp-content/plugins/widget-context
restart: always
environment:
WORDPRESS_DEBUG: 1
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: password
wp-cli:
image: wordpress:cli
depends_on:
- mysql
- wordpress
volumes:
- wp_data:/var/www/html
- .:/var/www/html/wp-content/plugins/widget-context-src
- ./dist:/var/www/html/wp-content/plugins/widget-context
environment:
WORDPRESS_DEBUG: 1
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: password
volumes:
db_data: {}
wp_data: {}