147 lines
3.4 KiB
YAML
147 lines
3.4 KiB
YAML
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
|
|
|
|
server_base:
|
|
build:
|
|
context: ../
|
|
dockerfile: rnd/autogpt_server/Dockerfile
|
|
target: server
|
|
image: autogpt_server:latest
|
|
command: ["echo", "This is a base image and should not be run directly"]
|
|
|
|
redis:
|
|
image: redis:latest
|
|
command: redis-server --requirepass password
|
|
ports:
|
|
- "6379:6379"
|
|
networks:
|
|
- app-network
|
|
|
|
api_srv:
|
|
image: autogpt_server:latest
|
|
command: ["poetry", "run", "rest"]
|
|
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
|
|
- PYRO_HOST=0.0.0.0
|
|
- EXECUTIONMANAGER_HOST=executor
|
|
- EXECUTIONSCHEDULER_HOST=execution_scheduler
|
|
- PORT=8000
|
|
ports:
|
|
- "8000:8000"
|
|
networks:
|
|
- app-network
|
|
|
|
executor:
|
|
image: autogpt_server:latest
|
|
command: ["poetry", "run", "executor"]
|
|
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
|
|
- PYRO_HOST=0.0.0.0
|
|
- AGENTSERVER_HOST=agent_server
|
|
- PORT=8002
|
|
ports:
|
|
- "8002:8002"
|
|
networks:
|
|
- app-network
|
|
|
|
ws_srv:
|
|
image: autogpt_server:latest
|
|
command: ["poetry", "run", "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
|
|
- PYRO_HOST=0.0.0.0
|
|
- PORT=8001
|
|
ports:
|
|
- "8001:8001"
|
|
networks:
|
|
- app-network
|
|
|
|
market:
|
|
build:
|
|
context: ../
|
|
dockerfile: rnd/market/Dockerfile
|
|
depends_on:
|
|
- postgres
|
|
environment:
|
|
- DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
|
|
ports:
|
|
- "8015:8015"
|
|
networks:
|
|
- app-network
|
|
|
|
frontend:
|
|
build:
|
|
context: ../
|
|
dockerfile: rnd/autogpt_builder/Dockerfile
|
|
target: dev
|
|
depends_on:
|
|
- postgres
|
|
- api_srv
|
|
- ws_srv
|
|
environment:
|
|
- DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
|
|
- NEXT_PUBLIC_AGPT_SERVER_URL=http://localhost:8000/api
|
|
- NEXT_PUBLIC_AGPT_WS_SERVER_URL=ws://localhost:8001/ws
|
|
- NEXT_PUBLIC_AGPT_MARKETPLACE_URL=http://localhost:8005/api/v1/market
|
|
ports:
|
|
- "3000:3000"
|
|
networks:
|
|
- app-network
|
|
networks:
|
|
app-network:
|
|
driver: bridge
|