-
Notifications
You must be signed in to change notification settings - Fork 448
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
base: master
Are you sure you want to change the base?
Conversation
* docker-compose (note the hyphen) is deprecated and unsupported as of July 2023: https://docs.docker.com/compose/reference/ * Document how to watch the logs and add `tty: true` so Ctrl-C works to stop watching * Update to latest docker-compose.yml version (3)
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Still relevant and important |
|
||
**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 comment
The 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 comment
The 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 attach
?
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.
well if you just want to see all the logs, as that container was made for, you can just docker compose logs -f logs
(first logs is the compose command, last one is the logs
container)
But then if you want to go check the logs file manually, you can just exec into the container with docker compose exec controller bash
and go into /unifi/logs
(either the controller
or logs
container as they both have point to the same logs)
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Still relevant and important |
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Still relevant and important |
For whenever this gets checked and merged, may as well just delete the version: line now as it's usually ignored nowadays by Docker Engine. It adjusts versioning automatically based on what's in the compose file. |
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Still relevant and important |
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Side-Projects.md
Outdated
``` | ||
|
||
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. |
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!
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
@Gamertech Done, thanks! |
Description
tty: true
to docker-compose.yml so Ctrl-C works to stop watching logsdocker compose
(no hyphen)How Has This Been Tested?
Tested locally. Before I had manually
kill
thedocker attach unifi_logs
command from a separate shell. Now Ctrl-C works.Checklist:
Go over all the following points, and put an
x
in all the boxes that apply.If you're unsure about any of these, don't hesitate to ask. We're here to help!