-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
63 lines (57 loc) · 1.43 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
version: '3'
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:php7.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
wp-cli-php8:
image: wordpress:cli-php8.2
depends_on:
- mysql
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
volumes:
db_data: {}
wp_data: {}