db init
This commit is contained in:
parent
02878f4696
commit
4ed1e88dc2
6 changed files with 20 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.idea
|
.idea
|
||||||
|
backend/.env
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# ENV
|
||||||
|
- MONGO_INITDB_ROOT_USERNAME=
|
||||||
|
- MONGO_INITDB_ROOT_PASSWORD=
|
0
backend/db/__init__.py
Normal file
0
backend/db/__init__.py
Normal file
0
backend/db/schemas.py
Normal file
0
backend/db/schemas.py
Normal file
15
backend/docker-compose.yaml
Normal file
15
backend/docker-compose.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
services:
|
||||||
|
mongodb:
|
||||||
|
image: mongo:8.0.0
|
||||||
|
container_name: mongodb
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "27017:27017"
|
||||||
|
environment:
|
||||||
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
|
||||||
|
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- mongo-data:/data/db
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mongo-data:
|
0
backend/requirements.txt
Normal file
0
backend/requirements.txt
Normal file
Loading…
Add table
Add a link
Reference in a new issue