feat: complete chat sessions and production startup
This commit is contained in:
+7
-2
@@ -1,6 +1,7 @@
|
||||
services:
|
||||
db:
|
||||
image: pgvector/pgvector:pg16
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: wisegrade
|
||||
POSTGRES_USER: wisegrade
|
||||
@@ -13,6 +14,7 @@ services:
|
||||
retries: 12
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
test-db:
|
||||
profiles: [test]
|
||||
image: pgvector/pgvector:pg16
|
||||
@@ -52,6 +54,7 @@ services:
|
||||
command: ["pytest", "-q"]
|
||||
api:
|
||||
build: ./backend
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes: &api-volumes
|
||||
- ${WISEGRADE_DATA_DIR}:/data/inbox:ro
|
||||
@@ -73,14 +76,16 @@ services:
|
||||
env_file: .env
|
||||
volumes: *api-volumes
|
||||
depends_on:
|
||||
db: {condition: service_healthy}
|
||||
api: {condition: service_healthy}
|
||||
redis: {condition: service_started}
|
||||
command: ["sh", "-c", "rq worker wisegrade --url \"$$REDIS_URL\""]
|
||||
web:
|
||||
build: ./frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:${WISEGRADE_WEB_PORT:-18080}:80"
|
||||
depends_on: [api]
|
||||
depends_on:
|
||||
api: {condition: service_healthy}
|
||||
healthcheck:
|
||||
test: [CMD, wget, -q, -O, /dev/null, "http://127.0.0.1/health"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user