-
Notifications
You must be signed in to change notification settings - Fork 98
Install and run using docker
It is assumed that you are familiar with basic docker
commands.
Make sure you have understood how telewater
is run by passing certain variables via command-line options or by setting them as environment variables.
Read Telewater CLI usage to learn about the telewater CLI.
Docker should be properly installed and running in your system.
$ docker pull aahnik/telewater
Put all your environment variables as described in Telewater CLI usage, in a file. Let's say .env
The file looks somewhat like this:
API_ID=13.....1
API_HASH=49111111ed8...........b09fb7dd1
BOT_TOKEN=1452222220:AAG_...................tbssssQ8
BOT_USERNAME=yourAwesomeName_bot
Now you can use the docker run
command, and pass the .env
file for the --env-file
option.
$ docker run -it -d --env-file .env aahnik/telewater
To see if your container is running,
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ae4d7d6651ca aahnik/telewater "telewater" 3 minutes ago Up 3 minutes zen_gates
The container id and name will be different in your machine.
To see the logs produced by the container,
$ docker logs zen_gates
Replace zen_gates
with the name of the container in your machine.