Files
popa_minecraft_launcher_api/docker-compose.yml
2025-12-12 20:31:40 +05:00

41 lines
920 B
YAML

services:
app:
container_name: minecraft-api
build:
context: .
dockerfile: Dockerfile
ports:
- "3001:3000"
user: "${UID:-1000}:${GID:-1000}"
volumes:
- ./app/static:/app/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