Files
Market_Assistant/docker-compose.yml
T
2026-09-30 15:45:01 +03:00

29 lines
804 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: market-assistant
# Деплой: docker compose up -d --build (нужен .env с TINKOFF_TOKEN рядом с этим файлом)
# Наружу торчит только web; backend доступен лишь внутри сети compose.
services:
backend:
build:
context: ./backend
image: ma-backend:${MA_TAG:-v0.1}
# Токен и флаги (TINKOFF_TOKEN, TINKOFF_SANDBOX, PRICES_STREAM...) — из .env,
# в образ они не попадают (.dockerignore).
env_file:
- .env
environment:
HOST: 0.0.0.0
PORT: "8000"
restart: unless-stopped
web:
build:
context: ./frontend
image: ma-web:${MA_TAG:-v0.1}
ports:
- "${WEB_PORT:-8080}:80"
depends_on:
- backend
restart: unless-stopped