Add example docker-compose.yml

This commit is contained in:
3wc 2023-01-30 21:29:49 -08:00
parent 68d34a93ce
commit 0a96ea3fa8
1 changed files with 28 additions and 0 deletions

28
docker-compose.yml Normal file
View File

@ -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: