-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.37 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
version: '2'
services:
mariadb:
image: mariadb:10.4
volumes:
- ./mariadb_data:/var/lib/mysql
- ./docker/mariadb/data:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: therootpassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
build:
context: .
dockerfile: ./docker/wordpress/Dockerfile
ports:
- 80:80
depends_on:
- mariadb
environment:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DEBUG: 'true'
INFOAMAZONIAAPIKEY: ${INFOAMAZONIAAPIKEY}
MAPBOXAPIKEY: ${MAPBOXAPIKEY}
volumes:
- ./src:/var/www/html/wp-content/plugins/jeo-mps
- ./wp-content:/var/www/html/wp-content
- ./docker/mariadb/data:/docker-entrypoint-initdb.d
- ./docker/wordpress/.htaccess:/var/www/html/.htaccess
phpmyadmin:
depends_on:
- mariadb
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '8080:80'
environment:
- PMA_HOST=mariadb
- MYSQL_ROOT_PASSWORD=therootpassword
- MYSQL_USER=wordpress
- MYSQL_DATABASE=wordpress
- MYSQL_PASSWORD=wordpress
watcher:
build:
context: .
dockerfile: ./docker/watcher/Dockerfile
volumes:
- ./:/app
volumes:
mariadb_data: