Skip to content

Commit

Permalink
docker-compose.api got merged out
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Oct 21, 2024
1 parent 163c2fa commit 53d5d2a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,29 @@ services:
alembic:
condition: service_completed_successfully

api:
build:
context: ./api
dockerfile: Dockerfile
environment:
- DATABASE_URL=postgresql://postgres:s3cr3t@db:5432/chai
- HOST=0.0.0.0
- PORT=8080
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
alembic:
condition: service_completed_successfully
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/heartbeat"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s

monitor:
build:
context: ./monitor
Expand Down

0 comments on commit 53d5d2a

Please sign in to comment.