mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-03 19:35:15 -05:00
78 lines
1.6 KiB
YAML
78 lines
1.6 KiB
YAML
version: "3"
|
|
services:
|
|
postgres:
|
|
image: ankane/pgvector:latest
|
|
environment:
|
|
- POSTGRES_USER=agpt_user
|
|
- POSTGRES_PASSWORD=pass123
|
|
- POSTGRES_DB=agpt_local
|
|
healthcheck:
|
|
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- app-network
|
|
|
|
redis:
|
|
image: redis:latest
|
|
command: redis-server --requirepass password
|
|
ports:
|
|
- "6379:6379"
|
|
networks:
|
|
- app-network
|
|
|
|
rest_server:
|
|
build:
|
|
context: ../
|
|
dockerfile: rnd/autogpt_server/Dockerfile
|
|
develop:
|
|
watch:
|
|
- path: ./
|
|
target: rnd/autogpt_server/
|
|
action: rebuild
|
|
depends_on:
|
|
redis:
|
|
condition: service_started
|
|
postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
- DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- REDIS_PASSWORD=password
|
|
- AUTH_ENABLED=false
|
|
ports:
|
|
- "8000:8000"
|
|
networks:
|
|
- app-network
|
|
|
|
ws_server:
|
|
build:
|
|
context: ../
|
|
dockerfile: rnd/autogpt_server/Dockerfile.ws
|
|
develop:
|
|
watch:
|
|
- path: ./
|
|
target: rnd/autogpt_server/
|
|
action: rebuild
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
environment:
|
|
- DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- REDIS_PASSWORD=password
|
|
- AUTH_ENABLED=false
|
|
ports:
|
|
- "8001:8001"
|
|
networks:
|
|
- app-network
|
|
|
|
networks:
|
|
app-network:
|
|
driver: bridge
|