From dba33f833569968b8656ca8b53a3cec5d7090caf Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 5 Jan 2022 16:15:31 +0100 Subject: [PATCH] move sia mongo variables to mongo docker compose file --- docker-compose.mongodb.yml | 6 ++++++ docker-compose.yml | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-compose.mongodb.yml b/docker-compose.mongodb.yml index 41b07a86..610d5308 100644 --- a/docker-compose.mongodb.yml +++ b/docker-compose.mongodb.yml @@ -7,6 +7,12 @@ x-logging: &default-logging max-file: "3" services: + sia: + environment: + - MONGODB_URI=mongodb://${SKYNET_DB_HOST}:${SKYNET_DB_PORT} + - MONGODB_USER=${SKYNET_DB_USER} + - MONGODB_PASSWORD=${SKYNET_DB_PASS} + mongo: image: mongo:4.4.1 command: --keyFile=/data/mgkey --replSet=${SKYNET_DB_REPLICASET:-skynet} diff --git a/docker-compose.yml b/docker-compose.yml index e88b2e22..941eeb74 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,9 +25,6 @@ services: logging: *default-logging environment: - SIA_MODULES=gctwra - - MONGODB_URI=mongodb://${SKYNET_DB_HOST}:${SKYNET_DB_PORT} - - MONGODB_USER=${SKYNET_DB_USER} - - MONGODB_PASSWORD=${SKYNET_DB_PASS} env_file: - .env