-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yaml
44 lines (40 loc) · 994 Bytes
/
docker-compose.yaml
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
version: '3.2'
services:
mariadb:
image: mariadb
restart: unless-stopped
volumes:
- mariadb_data:/var/lib/mysql
networks:
- default
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
wp:
depends_on:
- mariadb
image: wordpress:php7.4
restart: unless-stopped
ports:
- 127.0.0.1:80:80
- 127.0.0.1:443:443
networks:
- default
volumes:
- ./:/var/www/html/wp-content/themes/sunflower
# - ./docker/mu-plugins:/var/www/html/wp-content/mu-plugins
# - ./docker/.htaccess:/var/www/html/.htaccess
environment:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: true
WORDPRESS_CONFIG_EXTRA: |
define('WP_DEFAULT_THEME', 'sunflower' );
volumes:
mariadb_data:
networks:
default: