setting up postgres container for new schema

This commit is contained in:
lila 2026-07-23 23:57:11 +02:00
parent 5eda891fb5
commit 061b05afb6
3 changed files with 30 additions and 3 deletions

View file

@ -17,6 +17,27 @@ services:
timeout: 5s
retries: 5
pipeline-database:
container_name: lila-pipeline-database
image: postgres:18.3-alpine3.23
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data
- POSTGRES_USER=${PIPELINE_POSTGRES_USER}
- POSTGRES_PASSWORD=${PIPELINE_POSTGRES_PASSWORD}
- POSTGRES_DB=${PIPELINE_POSTGRES_DB}
ports:
- "5433:5432"
volumes:
- pipeline-db:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PIPELINE_POSTGRES_USER} -d ${PIPELINE_POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
valkey:
container_name: lila-valkey
image: valkey/valkey:9.1-alpine3.23
@ -80,3 +101,4 @@ services:
volumes:
lila-db:
pipeline-db: