-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (67 loc) · 1.88 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
64
65
66
67
68
69
70
71
72
73
74
version: '2.1'
services:
wordpress:
stdin_open: true
tty: true
build:
context: .
dockerfile: ./compose/local/wordpress/Dockerfile
depends_on:
- mariadb
ports:
- 80:80
environment:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DEBUG: 0
volumes:
- ./wp-root:/var/www/html/
- ./themes/midia-ninja-theme:/var/www/html/wp-content/themes/midia-ninja-theme
- ./plugins/hacklab-dev-utils:/var/www/html/wp-content/plugins/hacklab-dev-utils
- ./plugins/hacklab-blocks:/var/www/html/wp-content/plugins/hacklab-blocks
- ./compose/local/wordpress/htaccess-dev:/var/www/html/.htaccess
- ./compose/local/wordpress/php/extra.ini:/usr/local/etc/php/conf.d/extra.ini
watcher:
build:
context: .
dockerfile: ./compose/local/watcher/Dockerfile
volumes:
- ./themes/midia-ninja-theme:/app
watcher-blocks:
build:
context: .
dockerfile: ./compose/local/watcher/blocks/Dockerfile
volumes:
- ./themes/midia-ninja-theme/library/blocks:/app
watcher-plugin:
build:
context: .
dockerfile: ./compose/local/watcher/Dockerfile
volumes:
- ./plugins/hacklab-blocks:/app
mariadb:
image: mariadb:10.4
volumes:
- ./mariadb_data:/var/lib/mysql
- ./compose/local/mariadb/data:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: therootpassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
phpmyadmin:
depends_on:
- mariadb
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '8081:80'
environment:
- PMA_HOST=mariadb
- MYSQL_ROOT_PASSWORD=wordpress
- MYSQL_USER=wordpress
- MYSQL_DATABASE=wordpress
- MYSQL_PASSWORD=wordpress
volumes:
mariadb_data: