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