General purpose web server intended for swarm.
865
General web server/proxy for containerized environments.
Currently, this repo is set up for nginx deployed in a docker swarm for Node.JS apps.
example.docker-compose.local.yml should be docker-compose.local.ymldocker/dev-site.nginx.conf to config/site.nginx.conf and update it as needed.
config/dhparam.pem file
mkdir -p configopenssl dhparam -dsaparam -out config/dhparam.pem 4096docker-compose.local.yml and overwrite like that (e.g when needing to deploy dev/stage/prod on the same machine)export PROXY_DHPARAM_VERSION=$(md5sum config/dhparam.pem | tr ' ' '\n' | head -1)In the rest of services you want to join, add them to the proxy_default.
You should also add a unique alias to your service.
Note: In case swarm creates the network with a different name, not proxy_default, use that network instead.
E.g:
version: "3.7"
services:
app:
networks:
proxy_default:
aliases:
- dev-backend
networks:
proxy_default:
external: true
Content type
Image
Digest
Size
8.3 MB
Last updated
almost 7 years ago
docker pull brainsum/containerized-webserver