mirror of
https://github.com/cupcakearmy/wordpress-template.git
synced 2025-01-02 05:26:32 +00:00
docker files
This commit is contained in:
parent
4741aad8fa
commit
c1c07ef619
8
config/.env
Normal file
8
config/.env
Normal 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
11
config/Dockerfile
Normal 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
5
config/uploads.ini
Normal 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
23
docker-compose.yml
Executable 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
|
Loading…
Reference in New Issue
Block a user