150 lines
3.9 KiB
YAML
150 lines
3.9 KiB
YAML
services:
|
|
# Redis Cache
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: healthsync-redis
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- healthsync-network
|
|
|
|
# API Gateway
|
|
api-gateway:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- SERVICE_NAME=api-gateway
|
|
container_name: healthsync-gateway
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- REDIS_HOST=redis
|
|
- USER_SERVICE_URL=http://user-service:8081
|
|
- HEALTH_SERVICE_URL=http://health-service:8082
|
|
- INTELLIGENCE_SERVICE_URL=http://intelligence-service:8083
|
|
- GOAL_SERVICE_URL=http://goal-service:8084
|
|
- MOTIVATOR_SERVICE_URL=http://motivator-service:8085
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- healthsync-network
|
|
|
|
# User Service
|
|
user-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- SERVICE_NAME=user-service
|
|
container_name: healthsync-user-service
|
|
ports:
|
|
- "8081:8081"
|
|
environment:
|
|
- DB_URL=jdbc:postgresql://psql-digitalgarage-01.postgres.database.azure.com:5432/healthsync_db
|
|
- DB_USERNAME=team1tier
|
|
- DB_PASSWORD=Hi5Jessica!
|
|
- REDIS_HOST=redis-digitalgarage-01.redis.cache.windows.net
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- healthsync-network
|
|
|
|
# Health Service
|
|
health-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- SERVICE_NAME=health-service
|
|
container_name: healthsync-health-service
|
|
ports:
|
|
- "8082:8082"
|
|
environment:
|
|
- DB_URL=jdbc:postgresql://psql-digitalgarage-01.postgres.database.azure.com:5432/healthsync_db
|
|
- DB_USERNAME=team1tier
|
|
- DB_PASSWORD=Hi5Jessica!
|
|
- REDIS_HOST=redis
|
|
- USER_SERVICE_URL=http://user-service:8081
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- healthsync-network
|
|
|
|
# Intelligence Service
|
|
intelligence-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- SERVICE_NAME=intelligence-service
|
|
container_name: healthsync-intelligence-service
|
|
ports:
|
|
- "8083:8083"
|
|
environment:
|
|
- DB_URL=jdbc:postgresql://psql-digitalgarage-01.postgres.database.azure.com:5432/healthsync_db
|
|
- DB_USERNAME=team1tier
|
|
- DB_PASSWORD=Hi5Jessica!
|
|
- REDIS_HOST=redis
|
|
- USER_SERVICE_URL=http://user-service:8081
|
|
- HEALTH_SERVICE_URL=http://health-service:8082
|
|
- CLAUDE_API_KEY=${CLAUDE_API_KEY}
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- healthsync-network
|
|
|
|
# Goal Service
|
|
goal-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- SERVICE_NAME=goal-service
|
|
container_name: healthsync-goal-service
|
|
ports:
|
|
- "8084:8084"
|
|
environment:
|
|
- DB_URL=jdbc:postgresql://psql-digitalgarage-01.postgres.database.azure.com:5432/healthsync_db
|
|
- DB_USERNAME=team1tier
|
|
- DB_PASSWORD=Hi5Jessica!
|
|
- REDIS_HOST=redis
|
|
- USER_SERVICE_URL=http://user-service:8081
|
|
#- INTELLIGENCE_SERVICE_URL=http://intelligence-service:8083
|
|
- INTELLIGENCE_SERVICE_URL=http://team1tier.20.214.196.128.nip.io
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- healthsync-network
|
|
|
|
# Motivator Service
|
|
motivator-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- SERVICE_NAME=motivator-service
|
|
container_name: healthsync-motivator-service
|
|
ports:
|
|
- "8085:8085"
|
|
environment:
|
|
- DB_URL=jdbc:postgresql://psql-digitalgarage-01.postgres.database.azure.com:5432/healthsync_db
|
|
- DB_USERNAME=team1tier
|
|
- DB_PASSWORD=Hi5Jessica!
|
|
- REDIS_HOST=redis
|
|
- GOAL_SERVICE_URL=http://goal-service:8084
|
|
- INTELLIGENCE_SERVICE_URL=http://intelligence-service:8083
|
|
- CLAUDE_API_KEY=${CLAUDE_API_KEY}
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- healthsync-network
|
|
|
|
volumes:
|
|
redis_data:
|
|
|
|
networks:
|
|
healthsync-network:
|
|
driver: bridge |