You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,12 +199,14 @@ docker compose up --build
199
199
200
200
Notes:
201
201
* Requires Docker Desktop.
202
-
* By default, spins up two containers: `db_dev` (PostGIS/PostgreSQL) and `app` (FastAPI API service).
203
-
*`db_test` is opt-in via profile: `docker compose --profile test up`.
202
+
* By default, spins up two containers: `db` (PostGIS/PostgreSQL) and `app` (FastAPI API service).
203
+
*`db` initializes both application databases in the same Postgres service:
204
+
*`ocotilloapi_dev`
205
+
*`ocotilloapi_test`
204
206
*`alembic upgrade head` runs on app startup after `docker compose up`.
205
207
* Compose uses hardcoded DB names:
206
208
* dev: `ocotilloapi_dev`
207
-
* test: `ocotilloapi_test`
209
+
* test: `ocotilloapi_test` (created by init SQL in `docker/db/init/01-create-test-db.sql`)
208
210
* The database listens on port `5432` both inside the container and on your host. Ensure `POSTGRES_PORT=5432` and `POSTGRES_DB=ocotilloapi_dev` in your `.env` to run local commands against the Docker dev DB (e.g., `uv run pytest`, `uv run python -m transfers.transfer`).
0 commit comments