You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consult the [installation instructions](https://github.com/jc21/nginx-proxy-manager/blob/master/doc/INSTALL.md) for a complete guide or
27
-
if you just want to get up and running in the quickest time possible, grab all the files in the [doc/example/](https://github.com/jc21/nginx-proxy-manager/tree/master/doc/example) folder and run `docker-compose up -d`
26
+
if you just want to get up and running in the quickest time possible, grab all the files in the [doc/example/](https://github.com/jc21/nginx-proxy-manager/tree/master/doc/example) folder and run:
There's a few ways to configure this app depending on:
3
+
If you just want to get up and running in the quickest time possible, grab all the files in
4
+
the [doc/example/](https://github.com/jc21/nginx-proxy-manager/tree/master/doc/example)
5
+
folder and run:
6
+
7
+
```bash
8
+
docker-compose up -d
9
+
```
4
10
5
-
- Whether you use `docker-compose` or vanilla docker
6
-
- Which architecture you're running it on (raspberry pi also supported - Testers wanted!)
7
11
8
12
### Configuration File
9
13
@@ -13,32 +17,41 @@ Don't worry, this is easy to do.
13
17
14
18
The app requires a configuration file to let it know what database you're using.
15
19
16
-
Here's an example configuration for `mysql` (or mariadb):
20
+
Here's an example configuration for `mysql` (or mariadb) that is compatible with the docker-compose example below:
17
21
18
22
```json
19
23
{
20
24
"database": {
21
25
"engine": "mysql",
22
-
"host": "127.0.0.1",
23
-
"name": "nginxproxymanager",
24
-
"user": "nginxproxymanager",
25
-
"password": "password123",
26
+
"host": "db",
27
+
"name": "npm",
28
+
"user": "npm",
29
+
"password": "npm",
26
30
"port": 3306
27
31
}
28
32
}
29
33
```
30
34
31
-
Once you've created your configuration file it's easy to mount it in the docker container, examples below.
35
+
Once you've created your configuration file it's easy to mount it in the docker container.
32
36
33
37
**Note:** After the first run of the application, the config file will be altered to include generated encryption keys unique to your installation. These keys
34
38
affect the login and session management of the application. If these keys change for any reason, all users will be logged out.
35
39
36
40
37
41
### Database
38
42
39
-
This app doesn't come with a database, you have to provide one yourself. Currently only `mysql/mariadb` is supported.
43
+
This app doesn't come with a database, you have to provide one yourself. Currently only `mysql/mariadb` is supported for the minimum versions:
44
+
45
+
- MySQL v5.7.8+
46
+
- MariaDB v10.2.7+
47
+
48
+
It's easy to use another docker container for your database also and link it as part of the docker stack, so that's what the following examples
49
+
are going to use.
40
50
41
-
It's easy to use another docker container for your database also and link it as part of the docker stack. Here's an example:
51
+
52
+
### Running the App
53
+
54
+
Via `docker-compose`:
42
55
43
56
```yml
44
57
version: "3"
@@ -47,81 +60,51 @@ services:
47
60
image: jc21/nginx-proxy-manager:latest
48
61
restart: always
49
62
ports:
63
+
# Public HTTP Port:
50
64
- 80:80
51
-
- 81:81
65
+
# Public HTTPS Port:
52
66
- 443:443
67
+
# Admin Web Port:
68
+
- 81:81
53
69
volumes:
70
+
# Make sure this config.json file exists as per instructions above:
Check out the [dockerhub tags](https://cloud.docker.com/repository/registry-1.docker.io/jc21/nginx-proxy-manager/tags)
103
+
for a list of supported architectures and if you want one that doesn't exist,
104
+
[create a feature request](https://github.com/jc21/nginx-proxy-manager/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=).
105
+
106
+
Also, if you don't know how to already, follow [this guide to install docker and docker-compose](https://manre-universe.net/how-to-run-docker-and-docker-compose-on-raspbian/)
107
+
on Raspbian.
125
108
126
109
127
110
### Initial Run
@@ -162,4 +145,3 @@ value by specifying it as a Docker environment variable. The default if not spec
0 commit comments