-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] Update docker compose flow #695
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,24 +21,30 @@ to your host computer's local disk | |
|
||
```bash | ||
cd <directory with docker-compose.yml> | ||
docker-compose up -d | ||
docker compose up -d | ||
``` | ||
|
||
Now as long as you don't `docker compose down`, the docker daemon (`sudo systemctl enable docker`) will automatically start the various containers every time the Pi boots. | ||
|
||
**Logs:** | ||
|
||
Run `docker attach unifi_logs` to tail the various unifi logs files. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why would you want to "attach" to this container? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's the only way I could figure out how to access the log files (to diagnose issues). Is there another way besides There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well if you just want to see all the logs, as that container was made for, you can just |
||
|
||
**Setting Options:** | ||
|
||
* The `docker-compose.yml` file contains the options | ||
passed to Unifi Controller when it starts. | ||
Edit the `docker-compose.yml` file setting its values according to the | ||
[Options on the command line.](./README.md#options-on-the-command-line) | ||
* _Optional:_ Add additional `-e <any-environment-variables-you-want>` to the `docker-compose up` line | ||
* _Optional:_ Add additional `-e <any-environment-variables-you-want>` to the `docker compose up` line | ||
|
||
To change options to Unifi Controller:: | ||
|
||
```bash | ||
cd <directory with docker-compose.yml> | ||
docker-compose down # this stops Unifi Controller and MongoDB | ||
docker compose down # this stops Unifi Controller and MongoDB | ||
# ... edit the options in the docker-compose.yml file ... | ||
docker-compose up ... # to resume operation | ||
docker compose up ... # to resume operation | ||
``` | ||
|
||
### External MongoDB environment variables | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do it need to be a 'Pi' or could it be just any host system?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks!