docker files

This commit is contained in:
cupcakearmy 2019-08-25 18:40:19 +02:00
parent 4741aad8fa
commit c1c07ef619
4 changed files with 47 additions and 0 deletions

8
config/.env Normal file
View File

@ -0,0 +1,8 @@
WORDPRESS_DB_HOST=db
WORDPRESS_DB_USER=root
WORDPRESS_DB_PASSWORD=example
WORDPRESS_DB_NAME=wordpress
WORDPRESS_TABLE_PREFIX=
MYSQL_ROOT_PASSWORD=example
MYSQL_DATABASE=wordpress

11
config/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM wordpress:5-php7.3-apache
# # Possible
# # bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash
# # iconv imap interbase intl json ldap mbstring mysqli oci8 odbc opcache pcntl pdo pdo_dblib
# # pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline
# # recode reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem
# # sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zend_test zip
RUN docker-php-ext-install pdo_mysql \
&& a2enmod ext_filter headers

5
config/uploads.ini Normal file
View File

@ -0,0 +1,5 @@
file_uploads = On
memory_limit = 512M
upload_max_filesize = 512M
post_max_size = 512M
max_execution_time = 300

23
docker-compose.yml Executable file
View File

@ -0,0 +1,23 @@
version: '3.7'
x-default: &default
restart: unless-stopped
env_file: ./config/.env
services:
wp:
<<: *default
build: ./config
ports:
- 80:80
volumes:
- ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
- ./data/wp:/var/www/html
- ./theme:/var/www/html/wp-content/themes/theme:ro
db:
<<: *default
image: mariadb:10.3
volumes:
- ./data/db:/var/lib/mysql