Skip to content

Commit 081cb74

Browse files
authored
Merge pull request #18 from linuxserver/readme-tweaks
Tweak readme wording to try and help users with first time setup
2 parents b814b00 + f2e9fb1 commit 081cb74

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ The architectures supported by this image are:
5959

6060
## Application Setup
6161

62-
### This container requires an external mongodb database instance.
62+
After setup, the web UI is available at https://ip:8443. The application can be configured, or a backup restored, using the first run wizard.
6363

64-
The web UI is at https://ip:8443, setup with the first run wizard.
64+
**This container requires an external mongodb database instance.**
6565

6666
### Setting Up Your External Database
6767

@@ -78,14 +78,21 @@ db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO
7878

7979
Being sure to replace the placeholders with the same values you supplied to the Unifi container, and mount it into your *mongodb* container.
8080

81+
For example:
82+
8183
```yaml
82-
volumes:
83-
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
84+
unifi-db:
85+
image: docker.io/mongo:<version tag>
86+
container_name: unifi-db
87+
volumes:
88+
- /path/to/data:/data/db
89+
- /path/to/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
90+
restart: unless-stopped
8491
```
8592
8693
*Note that the init script method will only work on first run. If you start the mongodb container without an init script it will generate test data automatically and you will have to manually create your databases, or restart with a clean `/data/db` volume and an init script mounted.*
8794

88-
*If you are using the init script method do not also set `MONGO_INITDB_ROOT_USERNAME` or `MONGO_INITDB_ROOT_PASSWORD` values as they will cause conflicts.*
95+
*If you are using the init script method do not also set `MONGO_INITDB_ROOT_USERNAME`, `MONGO_INITDB_ROOT_PASSWORD`, or any other "INITDB" values as they will cause conflicts.*
8996

9097
You can also run the commands directly against the database using either `mongo` (< 6.0) or `mongosh` (>= 6.0).
9198

readme-vars.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ opt_param_ports:
5353
# application setup block
5454
app_setup_block_enabled: true
5555
app_setup_block: |
56-
### This container requires an external mongodb database instance.
56+
After setup, the web UI is available at https://ip:8443. The application can be configured, or a backup restored, using the first run wizard.
5757
58-
The web UI is at https://ip:8443, setup with the first run wizard.
58+
**This container requires an external mongodb database instance.**
5959
6060
### Setting Up Your External Database
6161
@@ -72,14 +72,21 @@ app_setup_block: |
7272
7373
Being sure to replace the placeholders with the same values you supplied to the Unifi container, and mount it into your *mongodb* container.
7474
75+
For example:
76+
7577
```yaml
76-
volumes:
77-
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
78+
unifi-db:
79+
image: docker.io/mongo:<version tag>
80+
container_name: unifi-db
81+
volumes:
82+
- /path/to/data:/data/db
83+
- /path/to/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
84+
restart: unless-stopped
7885
```
7986
8087
*Note that the init script method will only work on first run. If you start the mongodb container without an init script it will generate test data automatically and you will have to manually create your databases, or restart with a clean `/data/db` volume and an init script mounted.*
8188
82-
*If you are using the init script method do not also set `MONGO_INITDB_ROOT_USERNAME` or `MONGO_INITDB_ROOT_PASSWORD` values as they will cause conflicts.*
89+
*If you are using the init script method do not also set `MONGO_INITDB_ROOT_USERNAME`, `MONGO_INITDB_ROOT_PASSWORD`, or any other "INITDB" values as they will cause conflicts.*
8390
8491
You can also run the commands directly against the database using either `mongo` (< 6.0) or `mongosh` (>= 6.0).
8592

0 commit comments

Comments
 (0)