8000 fix(docker-compose): restart after hosts restarts by divyenduz · Pull Request #195 · xataio/agent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(docker-compose): restart after hosts restarts #195

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

Merged
merged 1 commit into from
May 28, 2025
Merged

fix(docker-compose): restart after hosts restarts #195

merged 1 commit into from
May 28, 2025

Conversation

divyenduz
Copy link
Contributor

Currently, agent doesn't restart if the host machine is restarted. This fixes it. Chose unless-stopped over always.

Policy What happens after you run docker stop <ctr> On next Docker/host reboot
always Container stays stopped for now, but Docker “forgets” that you stopped it and will start it again the next time the daemon (or the host) starts. Will start automatically.
unless-stopped Container stays stopped and Docker remembers that choice. Will not start—because you had stopped it.

Copy link
vercel bot commented May 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
agent ✅ Ready (Inspect) Visit Preview May 28, 2025 6:56am

@divyenduz divyenduz requested review from tsg and Copilot May 28, 2025 06:55
Copy link
Contributor
@Copilot Copilot AI left a 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 addresses the issue of the agent not restarting after a host reboot by setting the container restart policy to "unless-stopped".

  • Updated the Postgres service to include "restart: unless-stopped".
  • Updated the xata-agent service to include "restart: unless-stopped".

@divyenduz divyenduz added this pull request to the merge queue May 28, 2025
Merged via the queue into main with commit c0f6410 May 28, 2025
5 checks passed
@divyenduz divyenduz deleted the fix_dc branch May 28, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0