diff --git a/pica-apache/Dockerfile b/pica-apache/Dockerfile new file mode 100644 index 0000000..469bcab --- /dev/null +++ b/pica-apache/Dockerfile @@ -0,0 +1,10 @@ +# syntax=docker/dockerfile:1 + +FROM alpine:latest +RUN \ + apk add --no-cache \ + apache2 \ + apache2-proxy +COPY vhost-pica.conf /etc/apache2/conf.d/ +EXPOSE 80 +CMD httpd -D FOREGROUND diff --git a/pica-apache/docker-compose.yml b/pica-apache/docker-compose.yml new file mode 100644 index 0000000..a48381b --- /dev/null +++ b/pica-apache/docker-compose.yml @@ -0,0 +1,18 @@ +version: "2" +services: + pica: + image: thebluestbird/pica-standalone:latest + volumes: + - picarun:/run/pica + apache: + build: . + image: thebluestbird/pica-apache:latest + volumes: + - picarun:/run/pica + ports: + - 8080:80 + links: + - pica +volumes: + picarun: + diff --git a/pica-apache/vhost-pica.conf b/pica-apache/vhost-pica.conf new file mode 100644 index 0000000..10aed8e --- /dev/null +++ b/pica-apache/vhost-pica.conf @@ -0,0 +1,4 @@ + + ProxyPass "unix:/run/pica/pica.sock|fcgi://localhost" + ProxyPassReverse "http://localhost" +