Adding Wordpress stack.
This commit is contained in:
parent
5816baea13
commit
3f245cc3e6
7
wordpress/.env.dist
Normal file
7
wordpress/.env.dist
Normal file
|
@ -0,0 +1,7 @@
|
|||
FPM_EXT_PORT=9000
|
||||
MYSQL_HOST=mariadb-common
|
||||
MYSQL_USER=username
|
||||
MYSQL_PASSWORD=password
|
||||
MYSQL_DATABASE=database
|
||||
THEMES_DIR=./themes
|
||||
PLUGINS_DIR=./plugins
|
16
wordpress/docker-compose.yml
Normal file
16
wordpress/docker-compose.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
wordpress:
|
||||
image: 'wordpress:php7.3-fpm-alpine'
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '127.0.0.1:${FPM_EXT_PORT}:9000'
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: '${MYSQL_HOST:-mariadb-common}'
|
||||
WORDPRESS_DB_USER: '${MYSQL_USER}'
|
||||
WORDPRESS_DB_PASSWORD: '${MYSQL_PASSWORD}'
|
||||
WORDPRESS_DB_NAME: '${MYSQL_DATABASE}'
|
||||
volumes:
|
||||
- '${THEMES_DIR}:/var/www/html/wp-content/themes'
|
||||
- '${PLUGINS_DIR}:/var/www/html/wp-content/plugins'
|
Loading…
Reference in a new issue