-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
56 lines (52 loc) · 1.39 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
version: "3.7"
services:
wordpress-host:
image: wordpress:6.0.0-php8.0
restart: always
ports:
- "80:80"
environment:
WORDPRESS_DB_HOST: db-host
WORDPRESS_DB_USER: wp_db_user
WORDPRESS_DB_PASSWORD: wp_db_pass
WORDPRESS_DB_NAME: wp_db
WORDPRESS_DEBUG: 1
volumes:
- ./dist/host/plugins:/var/www/html/wp-content/plugins
- ./dist/host/themes:/var/www/html/wp-content/themes
wordpress-client:
image: wordpress:6.0.0-php8.0
restart: always
ports:
- "4000:80"
environment:
WORDPRESS_DB_HOST: db-client
WORDPRESS_DB_USER: wp_db_user
WORDPRESS_DB_PASSWORD: wp_db_pass
WORDPRESS_DB_NAME: wp_db
WORDPRESS_DEBUG: 1
volumes:
- ./dist/client/plugins:/var/www/html/wp-content/plugins
- ./dist/client/themes:/var/www/html/wp-content/themes
db-host:
image: mysql:5.7
platform: linux/amd64
restart: always
environment:
MYSQL_DATABASE: wp_db
MYSQL_USER: wp_db_user
MYSQL_PASSWORD: wp_db_pass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- ./dist/host/.db:/var/lib/mysql
db-client:
image: mysql:5.7
platform: linux/amd64
restart: always
environment:
MYSQL_DATABASE: wp_db
MYSQL_USER: wp_db_user
MYSQL_PASSWORD: wp_db_pass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- ./dist/client/.db:/var/lib/mysql