commit 59f7ffb48ac042761f9a42c88f83ee135c5c9b35 Author: cupcakearmy Date: Tue Mar 23 09:55:49 2021 +0100 build diff --git a/README.md b/README.md new file mode 100644 index 0000000..ff65e98 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Docker Wordpress + +Docker image for my wordpress instances. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ac250ae --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +version: "3.7" + +x-default: &default + restart: unless-stopped + env_file: .env + +services: + home: + <<: *default + image: cupcakearmy/wordpress + ports: + - 80:80 + volumes: + - ./data/home:/var/www/html + depends_on: + - db + + db: + <<: *default + image: mariadb:10 + volumes: + - ./data/db:/var/lib/mysql \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..df09ad1 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,5 @@ +FROM wordpress:5-apache + +RUN a2enmod headers + +COPY ./uploads.ini /usr/local/etc/php/conf.d/uploads.ini \ No newline at end of file diff --git a/docker/uploads.ini b/docker/uploads.ini new file mode 100644 index 0000000..9e6b5bb --- /dev/null +++ b/docker/uploads.ini @@ -0,0 +1,5 @@ +file_uploads = On +memory_limit = 5G +upload_max_filesize = 5G +post_max_size = 5G +max_execution_time = 300 \ No newline at end of file