fix: add DATABASE_URL, REDIS_URL, NATS_URL to city-service docker-compose

This commit is contained in:
Apple
2025-11-28 14:07:48 -08:00
parent 773a955ecc
commit 0c251d67fd

View File

@@ -14,12 +14,12 @@ services:
environment: environment:
- LOG_LEVEL=INFO - LOG_LEVEL=INFO
- ENVIRONMENT=development - ENVIRONMENT=development
# TODO: додати з'єднання з Redis, NATS, PostgreSQL - DATABASE_URL=postgresql://postgres:postgres@dagi-postgres:5432/daarion
# - REDIS_URL=redis://redis:6379 - REDIS_URL=redis://dagi-redis:6379
# - NATS_URL=nats://nats:4222 - NATS_URL=nats://dagi-nats:4222
# - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/daarion
networks: networks:
- daarion-network - daarion-network
- dagi-network
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:7001/health')"] test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:7001/health')"]
@@ -80,6 +80,8 @@ networks:
daarion-network: daarion-network:
name: daarion-network name: daarion-network
driver: bridge driver: bridge
dagi-network:
external: true