This scipts create docker-proxy
container from image jwilder/nginx-proxy that automate Nginx reverse proxy for docker containers and create docker network bridge
or overlay
mode.
$ cd ..
$ git clone https://github.com/attract/docker-proxy.git
$ cd docker-proxy
$ nginx-proxy.sh
This scipts create docker-proxy
container.
$ cd ..
$ git clone https://github.com/attract/docker-proxy.git
$ cd docker-proxy
$ nginx-proxy-bridge-overlay.sh
This script will create docker-proxy
container and docker networks bridge
and overlay
mode.
Now you can connect your stack in compose file to docker-proxy-overlay network:
networks:
docker-proxy-overlay:
external:
name: docker-proxy-overlay
For services:
networks:
- docker-proxy-overlay
$ sudo docker network ls
You will see networks bridge
and docker-proxy-overlay
in networks list.
$ sudo docker ps
You will see docker-proxy
container.