This commit is contained in:
44
nutrition-service-prod.yml
Normal file
44
nutrition-service-prod.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
# 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