Skip to content

NGINX configuration for my production cloud.

Notifications You must be signed in to change notification settings

christmo/nginx-config

 
 

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

Languages

  • HTML 52.6%
  • Shell 45.8%
  • Ruby 1.6%