# 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