From 0a96ea3fa83f8ec5cd6a6dbdef2c592c20c5a89d Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 30 Jan 2023 21:29:49 -0800 Subject: [PATCH] Add example docker-compose.yml --- docker-compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2185a22 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,28 @@ +--- +version: '2' + +services: + app: + container_name: pelican + image: 3wordchant/pelican:4.2.0 + build: . + volumes: + - src:/site + - output:/site-generated + + web: + image: httpd:2.4 + ports: + - 80:80 + volumes: + - output:/usr/local/apache2/htdocs/:ro + command: > + bash -c + " + sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf && + sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /usr/local/apache2/conf/httpd.conf && + httpd -DFOREGROUND" + +volumes: + src: + output: