Skip to content

docker-compose auto-restart containers #16

Description

@rsaleev

Hello,

(Fedora Server 43, Podman 5.8.0)

Container status 'exited', not reloaded by policy. Happens after few hours of idle, running on dedicated NUC, hibernation not applied.

May be change default policy and implement healthchecks?

services:
  bedrockconnect: 
    image: docker.io/strausmann/minecraft-bedrock-connect:latest
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "sh", "-c", "ps -e | grep -q 'bedrock-entry.s'"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s

 db: 
    image: docker.io/mysql:lts
    restart: unless-stopped
    healthcheck:
          test: ["CMD", "mysql", "-h", "localhost", "-u", "root", "-pSup3rS3cr3tPa$$word", "-e", "SELECT 1;"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions