fix: initialize tigerbeetle data file on startup
All checks were successful
Build Docker Image / build (push) Successful in 3m0s
All checks were successful
Build Docker Image / build (push) Successful in 3m0s
This commit is contained in:
@@ -23,7 +23,13 @@ services:
|
||||
tigerbeetle:
|
||||
image: ghcr.io/tigerbeetle/tigerbeetle:latest
|
||||
privileged: true
|
||||
command: ["start", "--addresses=0.0.0.0:3000", "--development", "/var/lib/tigerbeetle/0_0.tigerbeetle"]
|
||||
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"
|
||||
expose:
|
||||
- "3000"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user