Docker Dev Services Restart

Restart Docker development services for PostgreSQL and ElectricSQL safely.

Updated Dec 21, 2025
One-click install
npx skills add https://github.com/shotleybuilder/sertantai-legal --skill docker-dev-services-restart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Docker Dev Services Restart
Source: https://github.com/shotleybuilder/sertantai-legal/tree/main/.claude/skills/docker-restart
Command: npx skills add https://github.com/shotleybuilder/sertantai-legal --skill docker-dev-services-restart

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides safe and reliable procedures for restarting Docker development services, specifically PostgreSQL and ElectricSQL, ensuring data integrity and preventing accidental loss after system reboots or service disruptions.

Core Features & Use Cases

  • System Reboot Recovery: Guides users through restarting essential Docker services in the correct order after a full system shutdown.
  • Targeted Service Restart: Allows for restarting specific services like ElectricSQL when it misbehaves, without affecting other running components.
  • Safe Configuration Updates: Facilitates restarting services with updated configurations from docker-compose.dev.yml while minimizing data loss risks.
  • Verification Tools: Includes commands to check the status of Docker containers and the health of the ElectricSQL and Shape APIs.
  • Data Recovery Procedures: Outlines steps for recovering database data using SQL scripts if accidental loss occurs.

Quick Start

After a system reboot, run the provided commands from the project root to restart Docker development services.

Frequently Asked Questions about Docker Dev Services Restart

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restart Docker development services after a system reboot without losing data?

To restart Docker development services safely after a system reboot, execute the provided scripts from your project root to initialize PostgreSQL and ElectricSQL in the correct order, preventing data loss and verifying service health.

Can I restart ElectricSQL individually without impacting the PostgreSQL database container?

Yes, you can perform a targeted service restart for ElectricSQL independently. This allows you to resolve misbehaving ElectricSQL instances without affecting other running components like the PostgreSQL database.

What is the safest way to apply configuration updates from docker-compose.dev.yml to running Docker services?

The safest way to apply configuration updates from docker-compose.dev.yml is using the Skill's safe configuration update procedures, which facilitate restarting services with new settings while actively minimizing data loss risks.

How do I verify the health of ElectricSQL and Shape APIs after restarting Docker containers?

You can verify the health of ElectricSQL and Shape APIs after restarting Docker containers by running the included verification commands, which check the operational status of Docker containers and API availability.

What steps are needed to recover database data using SQL scripts if accidental loss occurs during a Docker restart?

To recover database data using SQL scripts after accidental loss during a Docker restart, follow the outlined data recovery procedures, which provide specific SQL commands to restore PostgreSQL data.

Why does restarting Docker development services risk data integrity and how is it prevented?

Restarting Docker development services risks data integrity due to improper shutdown sequences or configuration mismatches. This Skill prevents data loss by providing correct restart ordering, targeted recovery commands, and health verification.