Skip to content

Commit

Permalink
Создан docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Delitel-WEB committed Dec 23, 2023
1 parent 7312a56 commit 31c7868
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3'

services:
vk-tg-sync:
image: delitel/vk-tg-sync:latest
container_name: vk-tg-sync
environment:
- DB_PASS=
- DB_IP=db
- DB_NAME=vk_tg_sync
- TG_BOT_TOKEN=
- VK_BOT_TOKEN=
depends_on:
- db

db:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: vk_tg_sync
MYSQL_ROOT_PASSWORD:
volumes:
- "./db_data:/var/lib/mysql"


4 changes: 2 additions & 2 deletions sync/cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@


try:
tgBotToken = os.environ["tgBotToken"]
vkBotToken = os.environ["vkBotToken"]
tgBotToken = os.environ["TG_BOT_TOKEN"]
vkBotToken = os.environ["VK_BOT_TOKEN"]
DB_PASS = os.environ["DB_PASS"]
DB_IP = os.environ["DB_IP"]
DB_NAME = os.environ["DB_NAME"]
Expand Down

0 comments on commit 31c7868

Please sign in to comment.