This commit is contained in:
@@ -25,6 +25,7 @@ services:
|
||||
- LOCATION_SERVICE_URL=http://location-service-1:8003,http://location-service-2:8003
|
||||
- CALENDAR_SERVICE_URL=http://calendar-service-1:8004,http://calendar-service-2:8004
|
||||
- NOTIFICATION_SERVICE_URL=http://notification-service-1:8005,http://notification-service-2:8005
|
||||
- NUTRITION_SERVICE_URL=http://nutrition-service-1:8006,http://nutrition-service-2:8006
|
||||
- REDIS_URL=redis://redis-cluster:6379/0
|
||||
depends_on:
|
||||
- redis-cluster
|
||||
@@ -47,6 +48,7 @@ services:
|
||||
- LOCATION_SERVICE_URL=http://location-service-1:8003,http://location-service-2:8003
|
||||
- CALENDAR_SERVICE_URL=http://calendar-service-1:8004,http://calendar-service-2:8004
|
||||
- NOTIFICATION_SERVICE_URL=http://notification-service-1:8005,http://notification-service-2:8005
|
||||
- NUTRITION_SERVICE_URL=http://nutrition-service-1:8006,http://nutrition-service-2:8006
|
||||
- REDIS_URL=redis://redis-cluster:6379/0
|
||||
depends_on:
|
||||
- redis-cluster
|
||||
@@ -286,4 +288,48 @@ volumes:
|
||||
kafka_3_data:
|
||||
zookeeper_data:
|
||||
prometheus_data:
|
||||
grafana_data:
|
||||
grafana_data:
|
||||
# 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
|
||||
Reference in New Issue
Block a user