Move state storage to Postgres
This commit is contained in:
parent
b4693f5609
commit
c3d2bf424e
18 changed files with 1667 additions and 470 deletions
23
infra/postgres/docker-compose.yml
Normal file
23
infra/postgres/docker-compose.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: voidbot-postgres
|
||||
ports:
|
||||
- "${VOIDBOT_POSTGRES_PORT:-5432}:5432"
|
||||
environment:
|
||||
POSTGRES_DB: "${VOIDBOT_POSTGRES_DB:-voidbot}"
|
||||
POSTGRES_USER: "${VOIDBOT_POSTGRES_USER:-voidbot}"
|
||||
POSTGRES_PASSWORD: "${VOIDBOT_POSTGRES_PASSWORD:-voidbot}"
|
||||
volumes:
|
||||
- voidbot-postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
start_period: 5s
|
||||
|
||||
volumes:
|
||||
voidbot-postgres-data:
|
||||
Loading…
Reference in a new issue