-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.44 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
version: '3.1'
services:
wordpress:
depends_on:
- db
image: wordpress:latest
container_name: wordpres_wptest
restart: always
volumes:
- ./www/:/var/www/html/
- ./theme/twentyfourteen/:/var/www/html/wp-content/themes/twentyfourteen # Theme development
- ./theme/twentyfourteen-child/:/var/www/html/wp-content/themes/twentyfourteen-child # Child Theme development
- ./theme/catmandu/:/var/www/html/wp-content/themes/catmandu # Theme development
- ./theme/catmandu-child/:/var/www/html/wp-content/themes/catmandu-child # Child Theme development
#- ./plugin/ajax-load-more/:/var/www/html/wp-content/plugins/ajax-load-more # Theme development
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: p4ssw0rd!
WORDPRESS_DB_NAME: db_wordpress
WORDPRESS_TABLE_PREFIX: dx36fd_
ports:
- 8585:80
networks:
- wptest_network
db:
image: mariadb:latest
container_name: wptest_mariadb
restart: always
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: p4ssw0rd!
networks:
- wptest_network
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin:latest
container_name: wptest_phpmyadmin
restart: always
ports:
- 8686:80
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: p4ssw0rd!
networks:
- wptest_network
networks:
wptest_network:
volumes:
db_data: