xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
575 stars 129 forks source link

Get SESSION_FOLDER constant from env file #93

Closed Diden05 closed 2 years ago

Diden05 commented 2 years ago

Хочу запустить несколько контейнеров с TAS, монтирую папку sessions как том, хотелось бы разделить сессии контейнеров TAS друг от друга, есть ли возможность сделать каталог для сессий настраиваемым из env?

I want to run several containers with TAS, I mount the sessions folder as a volume, I would like to separate the sessions of the TAS containers from each other, is it possible to make the directory for sessions customizable from env?

xtrime-ru commented 2 years ago

Just edit docker-compose and override entrypoint. You can add multiple TAS containers and define exact session and port for each of them.

Diden05 commented 2 years ago

Решил вопрос назначением разных точек монтирования для разных контейнеров.

I solved the issue by assigning different mount points for different containers.