-
-
Notifications
You must be signed in to change notification settings - Fork 254
changed docker panel restart to unless-stopped #1995
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
Conversation
📝 WalkthroughWalkthroughThe panel service restart policy in Docker Compose configurations was changed from Changes
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Pull request overview
This PR updates the Docker restart policy for the Pelican panel service from restart: always to restart: unless-stopped across both compose files. This change provides better control during maintenance and updates by preventing automatic restarts when the container is manually stopped, while still ensuring the service restarts after crashes or system reboots.
Key Changes:
- Updated restart policy for the
panelservice tounless-stoppedin both Docker Compose configurations
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| compose.yml | Changed panel service restart policy from always to unless-stopped |
| compose-full-stack.yml | Changed panel service restart policy from always to unless-stopped, though database and cache services remain with restart: always |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| image: ghcr.io/pelican-dev/panel:latest | ||
| build: . | ||
| restart: always | ||
| restart: unless-stopped |
Copilot
AI
Dec 13, 2025
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.
The panel service restart policy has been updated to unless-stopped, but the database (line 42) and cache (line 51) services still use restart: always. For consistency and to apply the same benefits mentioned in the PR description (easier maintenance, avoiding restart loops during updates), consider updating all services in the stack to use unless-stopped. This would allow you to manually stop any service for maintenance without it automatically restarting.
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.
idk, if this is really needed, because database and cache could run without pelican
✅ Actions performedReview triggered.
|
|
This is the expected behaviour for all docker containers in a production environment, I second this pr. |
restart: unless-stoppedis the way to go for the Pelican Docker container. It’ll restart if it crashes or the server reboots, but it won’t bug you if you manually stopped it. Makes updates and maintenance way easier.restart: alwayscan be risky because the container will keep restarting even if it keeps crashing. This can create a loop and use up resources unnecessarily, especially during updates or if something goes wrong.