mirror of
https://github.com/go-sigma/sigma.git
synced 2026-10-29 12:34:34 +08:00
16 lines
346 B
Bash
Executable File
16 lines
346 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DOCKER=${DOCKER:-docker}
|
|
|
|
"$DOCKER" run -it \
|
|
--name sigma-postgres \
|
|
-e POSTGRES_PASSWORD=sigma \
|
|
-e POSTGRES_USER=sigma \
|
|
-e POSTGRES_DB=sigma \
|
|
-p 5432:5432 -d --rm \
|
|
--health-cmd "pg_isready -U sigma -d sigma || exit 1" \
|
|
--health-interval 10s \
|
|
--health-timeout 5s \
|
|
--health-retries 10 \
|
|
postgres:15-alpine
|