remove nginx, serve ui from api itself

This commit is contained in:
pratik
2025-10-15 14:22:44 -05:00
parent d3a14a2b31
commit 4a84c08a2b
7 changed files with 91 additions and 45 deletions

View File

@@ -34,7 +34,7 @@ services:
timeout: 5s
retries: 5
api:
app:
build: .
ports:
- "8000:8000"
@@ -52,25 +52,11 @@ services:
minio:
condition: service_healthy
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "4200:80"
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
volumes:
postgres_data: