59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
|
|
services:
|
|
#bot:
|
|
# build:
|
|
# context: .
|
|
# dockerfile: Dockerfile.bot
|
|
# container_name: telegram_bot
|
|
# restart: no
|
|
# env_file:
|
|
# - .env
|
|
# environment:
|
|
# - BOT_TOKEN=${BOT_TOKEN}
|
|
# command: python -m bot.main
|
|
# depends_on:
|
|
# - db
|
|
# volumes:
|
|
# - .:/app
|
|
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.api
|
|
container_name: api
|
|
restart: no
|
|
env_file:
|
|
- .env
|
|
command: python -m uvicorn api.main:app --host 0.0.0.0 --port 8000
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- .:/app
|
|
- ./data:/app/data
|
|
- ./models:/app/models
|
|
dns:
|
|
- 8.8.8.8
|
|
- 1.1.1.1
|
|
|
|
#db:
|
|
# image: postgres:15-alpine
|
|
# container_name: db
|
|
# restart: always
|
|
# environment:
|
|
# POSTGRES_USER: ${DB_USER}
|
|
# POSTGRES_PASSWORD: ${DB_PASS}
|
|
# POSTGRES_DB: ${DB_NAME}
|
|
# volumes:
|
|
# - ./pg_data:/var/lib/postgresql/data
|
|
# ports:
|
|
# - "5433:5432"
|
|
# healthcheck:
|
|
# test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
|
|
# interval: 5s
|
|
# timeout: 5s
|
|
# retries: 10
|
|
# start_period: 10s
|
|
|
|
#volumes:
|
|
# pg_data:
|