-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·42 lines (39 loc) · 1.13 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
version: '2'
services:
wordpress:
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: 'false'
volumes:
- ./wp-content:/var/www/html/wp-content
- ./themes/jeo-theme:/var/www/html/wp-content/themes/jeo-theme
- ./compose/local/wordpress/wp-config.d:/var/www/html/wp-config.d
- ./compose/local/wordpress/htaccess:/var/www/html/.htaccess
- ./compose/production/wordpress/php/extra.ini:/usr/local/etc/php/conf.d/extra.ini
watcher:
build:
context: .
dockerfile: ./compose/local/watcher/Dockerfile
volumes:
- ./themes/jeo-theme:/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
volumes:
mariadb_data: