Skip to content

cyacarinic/docker-nginx-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOCKER NGINX

TEST CON IMÁGENES

LEVANTAR NGINX LB
$ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
CORRER CONTAINERS
$ docker run -d -e VIRTUAL_HOST=test.dev imagen_1
$ docker run -d -e VIRTUAL_HOST=testing.dev imagen_2
$ docker run -d -e VIRTUAL_HOST=testing.dev imagen_3

TEST CON DOCKER COMPOSE

LEVANTAR SERVICIOS
$ docker-compose up -d
ESCALAMIENTO
$ docker-compose scale yacarini_uno=10 yacarini_dos=10

TEST CON DOCKER SWARM

CREATE DISCOVERY TOKEN
$ export token=$(docker run --rm swarm create)
ESCALAMIENTO
$ docker-compose scale yacarini_uno=10 yacarini_dos=10
REFERENCIAS
  • [Escalamiento con docker compose] REF1
  • [Proxy Reverso con Nginx para Docker] REF2
  • [Ngix Proxy - Containers Aislados] REF3

About

Reverse proxy using nginx & docker-gen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published