diff --git a/README.md b/README.md index 474dc10b..37ffeb0e 100644 Binary files a/README.md and b/README.md differ diff --git a/api-compose.yaml b/api-compose.yaml new file mode 100644 index 00000000..aa2f95b8 --- /dev/null +++ b/api-compose.yaml @@ -0,0 +1,14 @@ +version: '3.8' + +services: + rag_api: + build: . + ports: + - "8000:8000" + volumes: + - ./uploads:/app/uploads + env_file: + - .env + +volumes: + pgdata2: diff --git a/db-api-compose.yaml b/db-api-compose.yaml new file mode 100644 index 00000000..7d064b69 --- /dev/null +++ b/db-api-compose.yaml @@ -0,0 +1,30 @@ +version: '3.8' + +services: + db: + image: ankane/pgvector:latest + environment: + POSTGRES_DB: mydatabase + POSTGRES_USER: myuser + POSTGRES_PASSWORD: mypassword + volumes: + - pgdata2:/var/lib/postgresql/data + ports: + - "5433:5432" + + fastapi: + build: . + environment: + - DB_HOST=db + - DB_PORT=5432 + ports: + - "8000:8000" + volumes: + - ./uploads:/app/uploads + depends_on: + - db + env_file: + - .env + +volumes: + pgdata2: diff --git a/docker-compose.yaml b/docker-compose.yaml index 7d064b69..e879bdfe 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -12,19 +12,5 @@ services: ports: - "5433:5432" - fastapi: - build: . - environment: - - DB_HOST=db - - DB_PORT=5432 - ports: - - "8000:8000" - volumes: - - ./uploads:/app/uploads - depends_on: - - db - env_file: - - .env - volumes: pgdata2: