work version
All checks were successful
Build and Deploy / deploy (push) Successful in 11s

This commit is contained in:
2025-07-21 02:06:12 +05:00
parent 7131f6613e
commit 4bf266e2ba
2 changed files with 4 additions and 6 deletions

View File

@ -2,6 +2,7 @@ from motor.motor_asyncio import AsyncIOMotorClient
from app.core.config import MONGO_URI from app.core.config import MONGO_URI
client = AsyncIOMotorClient(MONGO_URI) client = AsyncIOMotorClient(MONGO_URI)
print(MONGO_URI)
db = client["minecraft-api"] db = client["minecraft-api"]
users_collection = db["users"] users_collection = db["users"]

View File

@ -8,11 +8,8 @@ services:
- "3001:3000" - "3001:3000"
volumes: volumes:
- ./app/static:/app/static - ./app/static:/app/static
environment: env_file:
- MONGO_URI=mongodb://mongodb:27017/minecraft-api - .env
- SECRET_KEY=your-secret-key
- ALGORITHM=HS256
- ACCESS_TOKEN_EXPIRE_MINUTES=30
depends_on: depends_on:
- mongodb - mongodb
@ -20,7 +17,7 @@ services:
container_name: mongodb container_name: mongodb
image: mongo:latest image: mongo:latest
ports: ports:
- "27017:27017" - "32768:27017"
volumes: volumes:
- ./mongodb:/data/db - ./mongodb:/data/db
environment: environment: