Merge branch 'dev'

add .env
This commit is contained in:
guyue 2025-01-02 17:47:26 +08:00
commit e2a41693a2
3 changed files with 15 additions and 5 deletions

13
.env Normal file
View File

@ -0,0 +1,13 @@
MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_DB=soulbook
REDIS_ENDPOINT=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
CACHE_DB=0
SESSION_DB=1
IS_RUNNING=true
API_KEY=key

3
.gitignore vendored
View File

@ -122,13 +122,10 @@ celerybeat.pid
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject

View File

@ -1,2 +1,2 @@
# sudo docker run -it -d -p 8001:8001 -e MONGO_HOST=127.0.0.1 -e MONGO_PORT=27017 -e REDIS_ENDPOINT=127.0.0.1 -e REDIS_PORT=6379 -e REDIS_PASSWORD=password guyue55/soulbook
sudo docker run -it -d -p 8001:8001 --env-file .env guyue55/soulbook
# sudo docker run -it --name soulbook -d -p 8001:8001 -e MONGO_HOST=127.0.0.1 -e MONGO_PORT=27017 -e REDIS_ENDPOINT=127.0.0.1 -e REDIS_PORT=6379 -e REDIS_PASSWORD=password guyue55/soulbook
sudo docker run -it -d --name soulbook -p 8001:8001 --env-file .env guyue55/soulbook