From 346f7af91243556f5b4e87e8a5be76cf6b7b9051 Mon Sep 17 00:00:00 2001 From: blue Date: Sat, 2 Dec 2023 18:29:09 -0300 Subject: [PATCH] pica+apache composition --- pica-apache/Dockerfile | 10 ++++++++++ pica-apache/docker-compose.yml | 18 ++++++++++++++++++ pica-apache/vhost-pica.conf | 4 ++++ 3 files changed, 32 insertions(+) create mode 100644 pica-apache/Dockerfile create mode 100644 pica-apache/docker-compose.yml create mode 100644 pica-apache/vhost-pica.conf 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" +