Files
tgex-backend/docker-compose.yml.example
Artem Tsyrulnikov 2c0ae2dfc3 парсер
2026-01-06 21:06:21 +03:00

69 lines
1.4 KiB
Plaintext

services:
postgres:
image: postgres:15
environment:
POSTGRES_USER: "user"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "tgex"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: "user"
MINIO_ROOT_PASSWORD: "password"
ports:
- "9001:9001" # Web Console
volumes:
- minio_data:/data
backend:
build:
context: .
ports:
- "8000:8000"
depends_on:
- postgres
- minio
environment:
DB__URL: "postgres://user:password@postgres:5432/tgex"
PARSER__URL: "http://tg_parser:8080"
S3__ENDPOINT_URL: "http://minio:9000"
env_file:
- .env
restart: unless-stopped
tg_bot:
build:
context: telegram_bot
depends_on:
- backend
env_file:
- .env
restart: unless-stopped
tg_parser:
build:
context: tg_parser
ports:
- "8080:8080"
depends_on:
- postgres
environment:
DB__URL: "postgres://user:password@postgres:5432/tgex"
LOGGER__LEVEL: "info"
LOGGER__PRETTY_CONSOLE: "true"
env_file:
- .env
volumes:
- ./tg_parser.session:/data/tg_parser.session
restart: unless-stopped
volumes:
postgres_data:
minio_data: