Skip to content

dbogatov/nginx-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 17, 2017
c8dbd4a · Dec 17, 2017
Dec 17, 2017
Dec 17, 2017
Oct 2, 2017
Mar 5, 2017
Mar 5, 2017
Sep 21, 2017
Sep 21, 2017
Nov 16, 2017
Nov 23, 2017
Oct 15, 2016
Nov 23, 2017
Mar 10, 2017
Oct 2, 2017
Dec 17, 2017
Dec 17, 2017

Repository files navigation

NGINX

How add to swarm

Make sure the overlay network is created

docker network create \
	--driver overlay \
	--attachable \
	internal-network

Deploy the service

docker service create \
	--name nginx \
	--publish 80:80 \
	--publish 443:443 \
	--mount type=bind,source=/etc/letsencrypt/,target=/etc/letsencrypt/,readonly \
	--mount type=bind,source=/etc/ssl/certs/dhparam.pem,target=/etc/ssl/certs/dhparam.pem,readonly \
	--constraint 'node.role == manager' \
	--network internal-network \
	registry.dbogatov.org/dbogatov/nginx-config:latest

Update the service

docker pull registry.dbogatov.org/dbogatov/nginx-config:latest
docker service update --image registry.dbogatov.org/dbogatov/nginx-config:latest nginx

About

NGINX configuration for my production cloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published