Files
chat/nutrition-service-prod.yml
Andrew K. Choi 537e7b363f
All checks were successful
continuous-integration/drone/push Build is passing
main commit
2025-10-16 16:30:25 +09:00

44 lines
1.4 KiB
YAML

# Nutrition Service Cluster
nutrition-service-1:
image: women-safety/nutrition-service:${TAG:-latest}
environment:
- NODE_ID=1
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres-primary:5432/women_safety_prod
- DATABASE_REPLICA_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres-replica:5432/women_safety_prod
- REDIS_URL=redis://redis-cluster:6379/5
- FATSECRET_CLIENT_ID=${FATSECRET_CLIENT_ID}
- FATSECRET_CLIENT_SECRET=${FATSECRET_CLIENT_SECRET}
depends_on:
- postgres-primary
- redis-cluster
restart: always
deploy:
resources:
limits:
cpus: '1.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
nutrition-service-2:
image: women-safety/nutrition-service:${TAG:-latest}
environment:
- NODE_ID=2
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres-primary:5432/women_safety_prod
- DATABASE_REPLICA_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres-replica:5432/women_safety_prod
- REDIS_URL=redis://redis-cluster:6379/5
- FATSECRET_CLIENT_ID=${FATSECRET_CLIENT_ID}
- FATSECRET_CLIENT_SECRET=${FATSECRET_CLIENT_SECRET}
depends_on:
- postgres-primary
- redis-cluster
restart: always
deploy:
resources:
limits:
cpus: '1.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M