Skip to content

Commit

Permalink
feat(chaotic-backend): restart on unhealthy state
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Jan 5, 2025
1 parent c1bf518 commit ee0b129
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
use nix shell.nix
#!/usr/bin/env sh
# the shebang is ignored, but nice for editors
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
fi

use flake
14 changes: 14 additions & 0 deletions docker-compose/chaotic-backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,17 @@ services:
REDIS_SSH_USER: package-deployer
ports: [3000:3000]
volumes: [./sshkey:/app/sshkey]

autoheal:
image: willfarrell/autoheal:latest
container_name: autoheal
deploy:
restart_policy:
condition: always
delay: 30s
environment:
AUTOHEAL_CONTAINER_LABEL: all
network_mode: none
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock

0 comments on commit ee0b129

Please sign in to comment.