updated readme to use markdown for code block
This commit is contained in:
parent
02332ae060
commit
15f9fef916
12
README.md
12
README.md
|
@ -12,16 +12,16 @@ To simplify inter-container communications when using a docker-compose
|
||||||
file for each web site, create a custom network to be shared between
|
file for each web site, create a custom network to be shared between
|
||||||
nginx-proxy-manager and each web app.
|
nginx-proxy-manager and each web app.
|
||||||
|
|
||||||
<pre>
|
```
|
||||||
$ docker network create npm-backend
|
$ docker network create npm-backend
|
||||||
</pre>
|
```
|
||||||
|
|
||||||
To use this network, a networks section needs to be added to each
|
To use this network, a networks section needs to be added to each
|
||||||
docker-compose.yml file. In addition, the nginx-proxy-manager is set
|
docker-compose.yml file. In addition, the nginx-proxy-manager is set
|
||||||
to use both it's default network, as well as the npm-backend network.
|
to use both it's default network, as well as the npm-backend network.
|
||||||
For all of the web apps, the npm-backend will be set as the default network.
|
For all of the web apps, the npm-backend will be set as the default network.
|
||||||
|
|
||||||
<pre>
|
```
|
||||||
-----[ nginx-proxy-manager docker.compose.yml ]-----
|
-----[ nginx-proxy-manager docker.compose.yml ]-----
|
||||||
---
|
---
|
||||||
version: '3'
|
version: '3'
|
||||||
|
@ -51,7 +51,7 @@ networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: npm-backend
|
name: npm-backend
|
||||||
</pre>
|
```
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
|
@ -61,10 +61,10 @@ networks:
|
||||||
|
|
||||||
## Directories
|
## Directories
|
||||||
|
|
||||||
<pre>
|
```
|
||||||
nginx-proxy-manager
|
nginx-proxy-manager
|
||||||
├── data
|
├── data
|
||||||
│ └── mysql
|
│ └── mysql
|
||||||
└── letsencrypt
|
└── letsencrypt
|
||||||
</pre>
|
```
|
||||||
|
|
||||||
|
|
70
README2.md
70
README2.md
|
@ -1,70 +0,0 @@
|
||||||
# nginx-proxy-manager docker deployment
|
|
||||||
|
|
||||||
## Introduction
|
|
||||||
|
|
||||||
This is a docker-compose configuration to deploy an nginx-proxy-manager
|
|
||||||
instance. It provides web site proxying via nginx, as well as SSL
|
|
||||||
support via letsencrypt.
|
|
||||||
|
|
||||||
## Custom Network
|
|
||||||
|
|
||||||
To simplify inter-container communications when using a docker-compose
|
|
||||||
file for each web site, create a custom network to be shared between
|
|
||||||
nginx-proxy-manager and each web app.
|
|
||||||
|
|
||||||
```
|
|
||||||
$ docker network create npm-backend
|
|
||||||
```
|
|
||||||
|
|
||||||
To use this network, a networks section needs to be added to each
|
|
||||||
docker-compose.yml file. In addition, the nginx-proxy-manager is set
|
|
||||||
to use both it's default network, as well as the npm-backend network.
|
|
||||||
For all of the web apps, the npm-backend will be set as the default network.
|
|
||||||
|
|
||||||
```
|
|
||||||
-----[ nginx-proxy-manager docker.compose.yml ]-----
|
|
||||||
---
|
|
||||||
version: '3'
|
|
||||||
|
|
||||||
networks:
|
|
||||||
npm-backend:
|
|
||||||
external:
|
|
||||||
name: npm-backend
|
|
||||||
|
|
||||||
services:
|
|
||||||
nginx-proxy-manager:
|
|
||||||
(...)
|
|
||||||
networks:
|
|
||||||
- default
|
|
||||||
- npm-backend
|
|
||||||
(...)
|
|
||||||
|
|
||||||
-----[ each web app docker.compose.yml ]-----
|
|
||||||
---
|
|
||||||
version: '3.2'
|
|
||||||
|
|
||||||
services:
|
|
||||||
web-app:
|
|
||||||
(...)
|
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
external: true
|
|
||||||
name: npm-backend
|
|
||||||
```
|
|
||||||
|
|
||||||
## Links
|
|
||||||
|
|
||||||
* https://nginxproxymanager.com
|
|
||||||
* https://github.com/jc21/nginx-proxy-manager
|
|
||||||
* https://letsencrypt.org
|
|
||||||
|
|
||||||
## Directories
|
|
||||||
|
|
||||||
```
|
|
||||||
nginx-proxy-manager
|
|
||||||
├── data
|
|
||||||
│ └── mysql
|
|
||||||
└── letsencrypt
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in New Issue