fix: add DATABASE_URL, REDIS_URL, NATS_URL to city-service docker-compose
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user