Adding Wordpress stack.

This commit is contained in:
Alexey Skobkin 2019-10-29 00:33:52 +03:00
parent 5816baea13
commit 3f245cc3e6
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7
2 changed files with 23 additions and 0 deletions

7
wordpress/.env.dist Normal file
View 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

View 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'