Files
Gov-chat-bot/docker-compose.yml
2026-03-26 12:49:43 +09:00

56 lines
1013 B
YAML

version: "3.9"
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: botuser
POSTGRES_PASSWORD: botpass
POSTGRES_DB: smartbot
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U botuser"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
volumes:
- redis_data:/data
chromadb:
image: chromadb/chroma:latest
environment:
ANONYMIZED_TELEMETRY: "false"
volumes:
- chroma_data:/chroma/chroma
backend:
build: ./backend
env_file: .env
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
chromadb:
condition: service_started
ports:
- "8000:8000"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
- backend
volumes:
postgres_data:
redis_data:
chroma_data: