Merge pull request #1520 from SkynetLabs/enable-skyd-without-mongo

move skyd mongo env variables to mongo docker compose file
This commit is contained in:
Karol Wypchło 2022-01-06 11:13:45 +01:00 committed by GitHub
commit 2815cae756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -7,6 +7,12 @@ x-logging: &default-logging
max-file: "3" max-file: "3"
services: services:
sia:
environment:
- MONGODB_URI=mongodb://${SKYNET_DB_HOST}:${SKYNET_DB_PORT}
- MONGODB_USER=${SKYNET_DB_USER}
- MONGODB_PASSWORD=${SKYNET_DB_PASS}
mongo: mongo:
image: mongo:4.4.1 image: mongo:4.4.1
command: --keyFile=/data/mgkey --replSet=${SKYNET_DB_REPLICASET:-skynet} command: --keyFile=/data/mgkey --replSet=${SKYNET_DB_REPLICASET:-skynet}

View File

@ -25,9 +25,6 @@ services:
logging: *default-logging logging: *default-logging
environment: environment:
- SIA_MODULES=gctwra - 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_file:
- .env - .env