Skip to content

Commit

Permalink
Dev (#47)
Browse files Browse the repository at this point in the history
* Update issue templates (#42)

* chore(dev): release 1.0.0

* style(read-me): latest tag

* chore(master): release 1.0.0 (#41)

* chore(master): release 1.0.0

* style: rm changelog dupes

* Update issue templates

* Mongodb (#45)

* chore: mongoose, nestjs/mongoose

* feat: mongoose config and schemas

* fix: schema types and validators

* cd: mongo compose and init config

* cd: coimpose columes

* refactor(gitignore): env etc.

* refactor: issue templates

* feat: mongo and phrases

* feat: wip - new interactive command

* feat: new commands
  • Loading branch information
sanriodev authored Feb 16, 2024
1 parent 1e28ddb commit c5a91da
Show file tree
Hide file tree
Showing 28 changed files with 745 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ CLIENT_ID =
# invite link:
# https://discord.com/api/oauth2/authorize?CLIENT_ID=<clientId>&permissions=0&scope=bot%20applications.commands
SERVER_ID =
# Mongo configuration
MONGO_URI=
MONGO_PORT=
MONGO_USERNAME=
MONGO_PASSWORD=
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Question
about: I have a question about the bots functionality.
title: ''
labels: discussion, question
assignees: ''
---

\*_My Question is:_
Your Question about BingusBoingus.

**What I've tried so far**

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ node_modules/

tsconfig.tsbuildinfo
tsconfig.build.tsbuildinfo
bingusboingus.code-workspace
bingusboingus.code-workspace
.vscode/settings.*
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [1.0.1](https://github.com/Blvckleg/BingusBoingus/compare/v1.0.0...v1.0.1) (2024-02-16)



### Bug Fixes

* **workflows:** i think this should do it ([141f4f2](https://github.com/Blvckleg/BingusBoingus/commit/141f4f2b51d49abbadf20d59df24585bce12dfe2))
Expand Down
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,31 @@ services:
ports:
- 3000:3000
restart: unless-stopped

mongo:
image: mongo:6.0.3
hostname: mongo
volumes:
- ./infra/mongo:/db/data:rw
- ./infra/mongo/mongo.conf:/etc/mongo/mongo.conf:ro
- ./infra/mongo/init.js:/docker-entrypoint-initdb.d/init.js:ro
env_file:
- ./infra/mongo/.env
command:
- --config
- /etc/mongo/mongo.conf
ports:
- 27017:27017
healthcheck:
test:
[
'CMD',
'sh',
'-c',
'echo ''db.runCommand("ping").ok'' | mongosh localhost:27017 --quiet',
]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
restart: unless-stopped
5 changes: 5 additions & 0 deletions infra/mongo/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MONGO_INITDB_ROOT_USERNAME=
MONGO_INITDB_ROOT_PASSWORD=
MONGO_USER=
MONGO_PASSWORD=
MONGO_INITDB_DATABASE=
5 changes: 5 additions & 0 deletions infra/mongo/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
db.createUser({
user: _getEnv('MONGO_USER'),
pwd: _getEnv('MONGO_PASSWORD'),
roles: ['readWrite', 'dbAdmin'],
});
42 changes: 42 additions & 0 deletions infra/mongo/mongo.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# mongod.conf

# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
# storage:
# dbPath: /var/lib/mongodb
# journal:
# enabled: true
# engine:
# wiredTiger:

# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log

# network interfaces
net:
port: 27017
bindIp: 0.0.0.0


# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo

#security:

#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp:
Loading

0 comments on commit c5a91da

Please sign in to comment.