From 59f7ffb48ac042761f9a42c88f83ee135c5c9b35 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Tue, 23 Mar 2021 09:55:49 +0100 Subject: [PATCH] build --- README.md | 3 +++ docker-compose.yml | 22 ++++++++++++++++++++++ docker/Dockerfile | 5 +++++ docker/uploads.ini | 5 +++++ 4 files changed, 35 insertions(+) create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 docker/Dockerfile create mode 100644 docker/uploads.ini 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