chore: add postgres schema migrations
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
container_name: devflow-postgres
|
||||
environment:
|
||||
POSTGRES_DB: devflow
|
||||
POSTGRES_USER: devflow
|
||||
POSTGRES_PASSWORD: devflow
|
||||
ports:
|
||||
- "${DEVFLOW_POSTGRES_PORT:-55432}:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U devflow -d devflow"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
volumes:
|
||||
- devflow_postgres_data:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
devflow_postgres_data:
|
||||
Reference in New Issue
Block a user