NOTE: This image is intended to be used with nfqlt/docker vagrant box and other nfqlt docker images. Other use scenarios might work but are not tested yet.
This is general purpose proxy for use as a front entry point and distribute requests according to subdomains
SSL/TLS (https) connections are not supported
This image is based on nginx and exposes port 80
Provide space separated lists of map entries. Map entry consists of nginx server_name pattern and container name to redirect request to separated by a colon :
example:
docker run -it -e NFQ_PROXY_MAP='*:website app.*:backend cdn.*:media' <this_image>
default values is empty.
The following configuration forwards cdn.my.project.test to media container, backend.my.project.test to backend container and every other subdomain to website cotainer.
version: '2.4'
services:
web:
image: nfqlt/proxy
links:
- website
- backend
- media
environment:
NFQ_PROXY_MAP: >
*:website
backend.*:backend
cdn.*:media:80
website:
image: nfqlt/apache24-php56
environment:
APACHE_DOCUMENTROOT: /home/project/src/web
volumes:
- ./:/home/project/src/web:ro
backend:
image: nfqlt/apache24-php56
environment:
APACHE_DOCUMENTROOT: /home/project/src/web
volumes:
- ./:/home/project/src/web:ro
media:
image: nfqlt/apache24-php56
environment:
APACHE_DOCUMENTROOT: /home/project/src/web
volumes:
- ./:/home/project/src/web:ro
Content type
Image
Digest
sha256:869facbe9…
Size
174.4 MB
Last updated
almost 4 years ago
docker pull nfqlt/proxy