-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1.09 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
services:
mysql:
image: mysql:8.0.37
ports:
- '33306:3306'
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_USER=test
- MYSQL_PASSWORD=test
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=wp_test
- MYSQL_ROOT_HOST=%
command: --max_connections=10000
wordpress:
image: wordpress:fpm-alpine
restart: 'no'
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: test
WORDPRESS_DB_PASSWORD: test
WORDPRESS_DB_NAME: wp_test
volumes:
- wordpress:/var/www/html
wp-cli:
image: wordpress:cli
restart: 'no'
depends_on:
- wordpress
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: test
WORDPRESS_DB_PASSWORD: test
WORDPRESS_DB_NAME: wp_test
volumes:
- wordpress:/var/www/html
- ./assets/:/assets/:ro
dns:
- 1.1.1.1
volumes:
wordpress:
db: