Add example docker-compose.yml
This commit is contained in:
parent
68d34a93ce
commit
0a96ea3fa8
|
@ -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:
|
Loading…
Reference in New Issue