-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from rsksmart/pegin-status-integration
Pegin status integration
- Loading branch information
Showing
52 changed files
with
2,030 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3.1' | ||
|
||
services: | ||
|
||
mongo: | ||
image: mongo | ||
container_name: '2wp-rsk-mongo-database' | ||
restart: always | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: ${RSK_DB_ROOT_USER} | ||
MONGO_INITDB_ROOT_PASSWORD: ${RSK_DB_ROOT_PASS} | ||
MONGO_INITDB_DATABASE: ${RSK_DB_NAME} | ||
MONGO_INITDB_USER: ${RSK_DB_USER} | ||
MONGO_INITDB_PWD: ${RSK_DB_PASS} | ||
volumes: | ||
- ./mongo-init.sh/:/docker-entrypoint-initdb.d/mongo-init.sh:ro | ||
# - ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro | ||
- ./db:/data/db | ||
ports: | ||
- '27017-27019:27017-27019' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set -e | ||
DB=rsk # $MONGO_INITDB_DATABASE | ||
USER=api-user # $MONGO_INITDB_USER | ||
PASS=pwd # $MONGO_INITDB_PASS | ||
# TODO: for some reason the sh file is not using the env variables set in the yml file so I'm hardcoding them | ||
|
||
mongo <<EOF | ||
use $DB | ||
db.createUser({ | ||
user: '$USER', | ||
pwd: '$PASS', | ||
roles: [{ | ||
role: 'readWrite', | ||
db: '$DB' | ||
}] | ||
}) | ||
EOF |
Oops, something went wrong.