Files
popa_minecraft_launcher_api/docker-compose.yml
DIKER0K c8d8c65251
All checks were successful
Build and Deploy / deploy (push) Successful in 41s
add: verify code in telegram
2025-07-21 08:07:21 +05:00

41 lines
894 B
YAML

services:
app:
container_name: minecraft-api
build:
context: .
dockerfile: Dockerfile
ports:
- "3001:3000"
user: "${UID:-1000}:${GID:-1000}"
volumes:
- ./app/static:/app/static:rw
env_file:
- .env
depends_on:
- mongodb
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"]
telegram_bot:
container_name: telegram_bot
build:
context: .
dockerfile: Dockerfile
user: "${UID:-1000}:${GID:-1000}"
volumes:
- ./telegram_bot.py:/app/telegram_bot.py
env_file:
- .env
command: ["python", "telegram_bot.py"]
mongodb:
container_name: mongodb
image: mongo:latest
ports:
- "32768:27017"
volumes:
- ./mongodb:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=popa
- MONGO_INITDB_ROOT_PASSWORD=2006sit_
restart: always