feat: update database and Valkey URLs in .env.example and docker-compose.yml for consistency

This commit is contained in:
2026-06-12 20:48:15 +08:00
parent 9f1b364530
commit 197ddaacfe
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ LLM_API_KEY=
LOGFIRE_TOKEN=
# PostgreSQL (asyncpg connection string)
DATABASE_URL=postgresql+asyncpg://agent_alpha:agent_alpha@localhost:5432/agent_alpha
DATABASE_URL=postgresql+asyncpg://agent_alpha:agent_alpha@postgres:5432/agent_alpha
# Valkey / Redis
VALKEY_URL=redis://localhost:6379/0
VALKEY_URL=redis://valkey:6379/0
+3 -2
View File
@@ -25,8 +25,9 @@ services:
# host .env file (with localhost URLs) does NOT override them.
- LLM_BASE_URL=${LLM_BASE_URL:-http://host.docker.internal:11434/v1}
- LLM_MODEL=${LLM_MODEL:-llama}
- DATABASE_URL=postgresql+asyncpg://agent_alpha:agent_alpha@postgres:5432/agent_alpha
- VALKEY_URL=redis://valkey:6379/0
- DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://agent_alpha:agent_alpha@postgres:5432/agent_alpha}
- VALKEY_URL=${VALKEY_URL:-redis://valkey:6379/0}
restart: unless-stopped
depends_on:
postgres: