Skip to content

Commit

Permalink
feat: add the API into Docker Compose, run Alembic upgrade and serve
Browse files Browse the repository at this point in the history
  • Loading branch information
TAnas0 committed Sep 27, 2024
1 parent 126ca7c commit 9548bfd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
services:
api:
build: .
ports:
- "8000:8000"
command: >
/bin/sh -c "sleep 10 && alembic upgrade head && uvicorn src.main:app --host 0.0.0.0 --port 8000"
environment:
POSTGRES_HOST: db
depends_on:
- db

db:
image: postgis/postgis:16-3.4
env_file:
Expand Down

0 comments on commit 9548bfd

Please sign in to comment.