feat: add docker-compose.yaml to set up postgres

This commit is contained in:
adrian
2025-09-02 11:03:52 +02:00
committed by Tamara
parent def49e7ddf
commit f7e3b7350e
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
version: "3.1"
services:
db:
build:
context: .
dockerfile: postgres.Dockerfile
restart: "always"
environment:
POSTGRESQL_PASSWORD: mypassword
POSTGRESQL_DATABASE: tycho_indexer_0
POSTGRESQL_USERNAME: postgres
POSTGRESQL_SHARED_PRELOAD_LIBRARIES: pg_cron
ports:
- "5431:5432"
shm_size: "1gb"
volumes:
postgres_data: