mirror of
https://github.com/Noratrieb/discord-court-bot.git
synced 2026-01-14 09:55:02 +01:00
get db running
This commit is contained in:
parent
d6ed409c9b
commit
9014ff6eff
2 changed files with 18 additions and 0 deletions
|
|
@ -8,5 +8,12 @@ DISCORD_TOKEN=token
|
||||||
APPLICATION_ID=uwu
|
APPLICATION_ID=uwu
|
||||||
RUST_LOG=DEBUG
|
RUST_LOG=DEBUG
|
||||||
MONGO_URI=mongodb://localhost:27017
|
MONGO_URI=mongodb://localhost:27017
|
||||||
|
MONGO_INITDB_ROOT_USERNAME=root
|
||||||
|
MONGO_INITDB_ROOT_PASSWORD=uwu
|
||||||
DEV=
|
DEV=
|
||||||
```
|
```
|
||||||
|
|
||||||
|
run mongodb
|
||||||
|
```shell
|
||||||
|
docker run --name karin-db -d mongo:latest
|
||||||
|
```
|
||||||
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
karin-db:
|
||||||
|
image: mongo
|
||||||
|
restart: on-failure
|
||||||
|
expose:
|
||||||
|
- 27017
|
||||||
|
ports:
|
||||||
|
- "27017:27017"
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
Loading…
Add table
Add a link
Reference in a new issue