Skip to content

Instantly share code, notes, and snippets.

@syaikhipin
Created January 6, 2024 15:08
Show Gist options
  • Save syaikhipin/62390e26eb4509a6b3fb9c927621ad53 to your computer and use it in GitHub Desktop.
Save syaikhipin/62390e26eb4509a6b3fb9c927621ad53 to your computer and use it in GitHub Desktop.
Docker Compose for Bionic GPT
version: '3'
services:
embeddings-api:
platform: linux/amd64
image: ghcr.io/huggingface/text-embeddings-inference:cpu-0.2.2
command: --model-id BAAI/bge-small-en-v1.5
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
- "8.8.8.8"
- "8.8.4.4"
unstructured:
image: downloads.unstructured.io/unstructured-io/unstructured-api:c30a2b8
ports:
- "8000:8000"
dns:
- "8.8.8.8"
- "8.8.4.4"
envoy:
image: ghcr.io/bionic-gpt/bionicgpt-envoy:1.3.2
ports:
- "7800:7700"
dns:
- "8.8.8.8"
- "8.8.4.4"
db:
image: ankane/pgvector
environment:
POSTGRES_PASSWORD: testpassword
POSTGRES_USER: postgres
POSTGRES_DB: finetuna
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
dns:
- "8.8.8.8"
- "8.8.4.4"
migrations:
image: ghcr.io/bionic-gpt/bionicgpt-db-migrations:1.3.2
environment:
DATABASE_URL: postgresql://postgres:testpassword@db:5432/postgres?sslmode=disable
depends_on:
db:
condition: service_healthy
dns:
- "8.8.8.8"
- "8.8.4.4"
barricade:
image: purtontech/barricade
environment:
SECRET_KEY: 190a5bf4b3cbb6c0991967ab1c48ab30790af876720f1835cbbf3820f4f5d949
DATABASE_URL: postgresql://postgres:testpassword@db:5432/postgres?sslmode=disable
FORWARD_URL: app
FORWARD_PORT: 7703
REDIRECT_URL: /app/post_registration
RUST_LOG: warn
depends_on:
db:
condition: service_healthy
migrations:
condition: service_completed_successfully
dns:
- "8.8.8.8"
- "8.8.4.4"
pipeline-job:
image: ghcr.io/bionic-gpt/bionicgpt-pipeline-job:1.3.2
environment:
APP_DATABASE_URL: postgresql://ft_application:testpassword@db:5432/postgres?sslmode=disable
depends_on:
db:
condition: service_healthy
migrations:
condition: service_completed_successfully
dns:
- "8.8.8.8"
- "8.8.4.4"
app:
image: ghcr.io/bionic-gpt/bionicgpt:1.3.2
environment:
APP_DATABASE_URL: postgresql://ft_application:testpassword@db:5432/postgres?sslmode=disable
depends_on:
db:
condition: service_healthy
migrations:
condition: service_completed_successfully
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
- "8.8.8.8"
- "8.8.4.4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment