move sia mongo variables to mongo docker compose file

This commit is contained in:
Karol Wypchlo 2022-01-05 16:15:31 +01:00
parent 27850430d3
commit dba33f8335
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
2 changed files with 6 additions and 3 deletions

View File

@ -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}

View File

@ -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