48 lines
1012 B
YAML
48 lines
1012 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: ..
|
|
dockerfile: .devcontainer/Dockerfile
|
|
volumes:
|
|
- ..:/workspace:cached
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
command: sleep infinity
|
|
environment:
|
|
- DATABASE_URL=postgresql://postgres:postgres@db:5432/dreamchat
|
|
- REDIS_URL=redis://redis:6379
|
|
# Keycloak is external - configure KEYCLOAK_URL in apps/backend/.env
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
networks:
|
|
- dreamchat-network
|
|
|
|
db:
|
|
image: ankane/pgvector:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: dreamchat
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- dreamchat-network
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "6379:6379"
|
|
networks:
|
|
- dreamchat-network
|
|
|
|
volumes:
|
|
postgres-data:
|
|
|
|
networks:
|
|
dreamchat-network:
|
|
driver: bridge
|