https://github.com/mageddo/docker-swarm-nginx-reverse-proxy-example
https://github.com/mageddo/docker-swarm-nginx-reverse-proxy-example
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mageddo/docker-swarm-nginx-reverse-proxy-example
- Owner: mageddo
- Created: 2019-05-25T01:50:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-25T01:54:20.000Z (about 7 years ago)
- Last Synced: 2025-04-14T10:12:52.194Z (about 1 year ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Setup the network
```bash
$ docker network create --attachable --driver overlay swarm-network
$ docker-compose build
$ docker stack deploy -c docker-compose.yml nginx-reverse-proxy
```
Testing reverse-proxy
```bash
$ curl -w '\n' 127.0.0.1/
Service 1 it's working
$ curl -w '\n' -H 'Host: service2.acme.com' 127.0.0.1/
Service 2 it's working
```