Skip to content

Commit

Permalink
edit setup dev environment with new model attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
liberty-rising committed Jan 21, 2024
1 parent 46b398f commit 157601b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/envs/dev/initialization/setup_dev_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def create_sample_dataprofile():
name="Sample Profile",
file_type="pdf",
organization_id=1,
description="Sample Description",
extract_instructions="Sample extract instructions",
)
# Using DatabaseManager to manage the database session
with DatabaseManager() as session:
Expand Down
16 changes: 10 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ services:
condition: service_healthy
env_file:
- ./backend/.env
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
ports:
- "8000:8000"
volumes:
Expand All @@ -34,10 +31,17 @@ services:
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: db
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin"]
test: ["CMD-SHELL", "pg_isready -U admin -d db"]
interval: 30s
timeout: 30s
retries: 3
volumes:
- ./initdb:/docker-entrypoint-initdb.d # Added line for initialization script

volumes:
pgdata:

0 comments on commit 157601b

Please sign in to comment.