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: