diff --git a/.gitignore b/.gitignore index 21a9b1c..c9142c9 100644 --- a/.gitignore +++ b/.gitignore @@ -125,4 +125,7 @@ venv.bak/ dmypy.json # poetry lock -poetry.lock \ No newline at end of file +poetry.lock + +# env files +.env diff --git a/README.md b/README.md index c8032df..6553005 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,4 @@ * Запустите `docker-compose -f docker-compose-api.yml up -d` * В боте по пути `apps/tgbot/tgbot/nodes.py` добавьте ноду как указано в примере и перезапустите его. #### Установка бота -* Запустите `docker-compose -f docker-compose-bot.yml up -d` +* Запустите `docker-compose -f docker-compose-tgbot.yml up -d` diff --git a/docker-compose-api.yml b/docker-compose-api.yml index 5829542..f666b23 100644 --- a/docker-compose-api.yml +++ b/docker-compose-api.yml @@ -4,12 +4,7 @@ services: build: context: ./apps dockerfile: Dockerfile-api - environment: - - APP_PORT=8080 - - WORKERS=2 - - ASYNC_CORES=2000 - - NODE_NAME="Default node" - - NODE_LOCATION="Undefined location" - - ACCESS_TOKEN="CHANGE_TOKEN" + env_file: + - api.env ports: - "0.0.0.0:8080:8080"