pica+apache composition
This commit is contained in:
parent
6d7a3b7b67
commit
346f7af912
10
pica-apache/Dockerfile
Normal file
10
pica-apache/Dockerfile
Normal 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
|
18
pica-apache/docker-compose.yml
Normal file
18
pica-apache/docker-compose.yml
Normal 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:
|
||||||
|
|
4
pica-apache/vhost-pica.conf
Normal file
4
pica-apache/vhost-pica.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<Location /pica>
|
||||||
|
ProxyPass "unix:/run/pica/pica.sock|fcgi://localhost"
|
||||||
|
ProxyPassReverse "http://localhost"
|
||||||
|
</Location>
|
Loading…
Reference in New Issue
Block a user