From f60d4b7a783052a4e66d2c76d788c6677e42a697 Mon Sep 17 00:00:00 2001 From: TheLanc3 Date: Sun, 8 Feb 2026 11:34:13 +0300 Subject: [PATCH] Updated db-scheme in schemes.drawio --- docker-compose.yml | 41 +++++++++++++++++++++++++++++++++ schemes.drawio | 57 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d21bfd2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,41 @@ +services: + postgres: + image: postgres:16-alpine + container_name: laura_postgres + environment: + POSTGRES_USER: ${DB_USER:-postgres} + POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres} + POSTGRES_DB: ${DB_NAME:-giveawaybot} + ports: + - "${DB_PORT:-5432}:5432" + volumes: + - postgres_data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres}"] + interval: 10s + timeout: 5s + retries: 5 + networks: + - laura_network + +telegram-bot-api: + image: aiogram/telegram-bot-api:latest + container_name: laura_telegram_api + environment: + TELEGRAM_API_ID: ${TELEGRAM_API_ID:-} + TELEGRAM_API_HASH: ${TELEGRAM_API_HASH:-} + volumes: + - telegram_bot_api_data:/var/lib/telegram-bot-api + ports: + - "${TELEGRAM_API_PORT:-8081}:8081" + restart: unless-stopped + networks: + - laura_network + +networks: + laura_network: + driver: bridge + +volumes: + postgres_data: + telegram_bot_api_data: \ No newline at end of file diff --git a/schemes.drawio b/schemes.drawio index b9ef70f..5519a98 100644 --- a/schemes.drawio +++ b/schemes.drawio @@ -1,9 +1,64 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +