fix: pass tigerbeetle init script as single shell command
All checks were successful
Build Docker Image / build (push) Successful in 2m23s

This commit is contained in:
Ruslan Bakiev
2026-03-15 11:49:36 +07:00
parent ec122ce196
commit ed11944d1e

View File

@@ -24,12 +24,11 @@ services:
image: ghcr.io/tigerbeetle/tigerbeetle:latest
privileged: true
entrypoint: ["/bin/sh", "-ec"]
command: |
TB_FILE=/var/lib/tigerbeetle/0_0.tigerbeetle
if [ ! -f "$$TB_FILE" ]; then
/tigerbeetle format --cluster=0 --replica=0 "$$TB_FILE"
fi
exec /tigerbeetle start --addresses=0.0.0.0:3000 --development "$$TB_FILE"
command:
- >-
TB_FILE=/var/lib/tigerbeetle/0_0.tigerbeetle; if [ ! -f "$$TB_FILE" ];
then /tigerbeetle format --cluster=0 --replica=0 "$$TB_FILE"; fi; exec
/tigerbeetle start --addresses=0.0.0.0:3000 --development "$$TB_FILE"
expose:
- "3000"
volumes: