Nginx proxy container that uses env variables to substitute the nginx.conf and default.conf
Proxies traffic from nginx service to the app service
version: '3'
services:
app:
image: nginx:alpine
nginx:
image: bigmassa/nginx-proxy
environment:
- CLIENT_MAX_BODY_SIZE=75M
- PROXY_HOST=app
- PROXY_PORT=80
- SERVER_NAME=localhost
- WORKER_CONNECTIONS=2048
- WORKER_PROCESSES=auto
depends_on:
- app
ports:
- "80:80"
Then go to http://localhost/
mount volumes into the folder /www these will be available from the root url eg:
version: '3'
services:
app:
image: nginx:alpine
nginx:
...
volumes:
- ./static:/www/static
...
the files will then be available like http://localhost/static/.... Nginx will try these
files before proxying off to the upstream server.
Content type
Image
Digest
Size
9.2 MB
Last updated
about 6 years ago
docker pull bigmassa/nginx-proxy