-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
36 lines (32 loc) · 1.09 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
version: '2'
services:
wordpress:
image: wordpress:php7.2
depends_on:
- mysql
ports:
- 80:80
- 443:443
volumes:
- ./includes/docker-scripts:/docker-scripts
- ./wp-data:/var/www/html
- ./source:/var/www/html/wp-content/plugins/multidomain-support-for-elementor
environment:
# WORDPRESS_DB_HOST: # ... (defaults to the IP and port of the linked mysql container)
# WORDPRESS_DB_USER: # ... (defaults to "root")
WORDPRESS_DB_PASSWORD: root_password # (defaults to the value of the MYSQL_ROOT_PASSWORD environment variable from the linked mysql container)
# WORDPRESS_DB_NAME: # ... (defaults to "wordpress")
WORDPRESS_TABLE_PREFIX: wp_ # ... (defaults to "", only set this when you need to override the default table prefix in wp-config.php)
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: root_password
#phpmyadmin:
# image: phpmyadmin/phpmyadmin
# links:
# - mysql:db
# ports:
# - 8181:80
# environment:
# MYSQL_USERNAME: root
# MYSQL_ROOT_PASSWORD: root_password