From cac8e7d126fdc11e89c4f79e94fb6cbabc43a185 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 7 Nov 2025 14:07:13 -0600 Subject: [PATCH] CLAUDE: Comment out API service - prevents race condition in db_engine.py - db_engine.py calls db.create_tables() at import time - Multiple gunicorn workers cause duplicate key violations - Run API locally for better development experience - Keeps postgres and adminer services only --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b2b66ab..400b38e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -39,6 +39,8 @@ services: # Paper Dynasty API (optional - can run locally with 'uvicorn app.main:app --reload') # Uncomment this section if you want to run the API in Docker + # IMPORTANT: db_engine.py calls db.create_tables() at import time which causes + # race conditions with multiple gunicorn workers. Run API locally for now. # api: # build: . # restart: unless-stopped