Skip to content

Commit

Permalink
merged mongo export w/ healthcheck & made interval 10m
Browse files Browse the repository at this point in the history
  • Loading branch information
masukomi committed Aug 6, 2024
1 parent ad6e4f1 commit 3c62bf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docker-compose-with-tailscale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ services:
env_file: .env
restart: unless-stopped
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
# test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
test: cd /app && scripts/export.sh
interval: 10m
retries: 5
start_period: 30s
timeout: 10s
Expand Down
5 changes: 3 additions & 2 deletions docker-compose-without-tailscale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ services:
env_file: .env
restart: unless-stopped
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
# test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
test: cd /app && scripts/export.sh
interval: 10m
retries: 5
start_period: 30s
timeout: 10s
Expand Down

0 comments on commit 3c62bf9

Please sign in to comment.