Skip to content

fix(environment): restart serving containers after a docker restart - #60

Merged
jravani merged 1 commit into
mainfrom
fix/restart-serving-containers
Oct 13, 2026
Merged

jravani merged 1 commit into
mainfrom
fix/restart-serving-containers

Conversation

@jravani

@jravani jravani commented Oct 13, 2026

Copy link
Copy Markdown
Member

Summary

Adds restart: unless-stopped to db, ignis and proxy in every compose file under environment/, so the serving containers come back after a Docker daemon restart or host reboot. build-db is a one-shot seed job and keeps no policy.

Deployment note

The policy lives in the compose file, not the image, so changing IGNIS_IMAGE_TAG alone does not apply it. An existing deployment picks it up by taking the updated compose file and running docker compose up -d, or applies it to running containers with docker update --restart unless-stopped <container>.

Verification

docker compose -f <file> config on each of the five files shows restart: unless-stopped on the serving services and no restart policy on build-db.

Closes #59

Without a restart policy, ignis, db and the https proxy stayed down
after a Docker daemon restart or host reboot until compose was run
again. Set restart: unless-stopped on every long-running service in
all five compose files, development and production alike.

build-db keeps no policy: it is a one-shot seed job, and
unless-stopped would rerun it every time the daemon starts.

Closes #59
@jravani jravani linked an issue Oct 13, 2026 that may be closed by this pull request
@jravani
jravani merged commit 05924d5 into main Oct 13, 2026
2 checks passed
@jravani
jravani deleted the fix/restart-serving-containers branch October 13, 2026 20:21
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.

Serving containers stay down after a Docker restart

1 participant