pica+apache composition

This commit is contained in:
Blue 2023-12-02 18:29:09 -03:00
parent 6d7a3b7b67
commit 346f7af912
Signed by: blue
GPG Key ID: 9B203B252A63EE38
3 changed files with 32 additions and 0 deletions

10
pica-apache/Dockerfile Normal file
View File

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

View File

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

View File

@ -0,0 +1,4 @@
<Location /pica>
ProxyPass "unix:/run/pica/pica.sock|fcgi://localhost"
ProxyPassReverse "http://localhost"
</Location>