mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-24 22:39:15 +01:00
Added section for docker-machine user
This commit is contained in:
30
README.md
30
README.md
@@ -15,11 +15,25 @@ It is available here [@luxmedbot](https://telegram.me/luxmedbot)
|
||||
|
||||
1. create telegram bot using [@BotFather](https://telegram.me/botfather)
|
||||
2. install **docker** and **docker-compose**
|
||||
3. create a docker volume and name it **lbs**:
|
||||
3. **skip if you don't use docker-machine**
|
||||
- install **docker-machine**
|
||||
- Start **docker-machine**
|
||||
```bash
|
||||
$ docker-machine start
|
||||
```
|
||||
- Connect to it
|
||||
```bash
|
||||
$ docker-machine ssh
|
||||
```
|
||||
- Elevate yourself to super user
|
||||
```bash
|
||||
$ sudo -i
|
||||
```
|
||||
4. create a docker volume and name it **lbs**:
|
||||
```bash
|
||||
$ docker volume create lbs
|
||||
```
|
||||
4. find physical location of the volume:
|
||||
5. find physical location of the volume:
|
||||
```bash
|
||||
docker volume inspect lbs
|
||||
```
|
||||
@@ -41,15 +55,15 @@ It is available here [@luxmedbot](https://telegram.me/luxmedbot)
|
||||
}
|
||||
]
|
||||
```
|
||||
5. using value from **Mountpoint** create **config** folder:
|
||||
6. using value from **Mountpoint** create **config** folder:
|
||||
```bash
|
||||
mkdir /var/lib/docker/volumes/lbs/_data/config
|
||||
```
|
||||
6. create env file in that folder
|
||||
7. create env file in that folder
|
||||
```bash
|
||||
touch /var/lib/docker/volumes/lbs/_data/config/env
|
||||
```
|
||||
7. edit the file by adding **TELEGRAM_TOKEN** and **SECURITY_SECRET**
|
||||
8. edit the file by adding **TELEGRAM_TOKEN** and **SECURITY_SECRET**
|
||||
```bash
|
||||
nano /var/lib/docker/volumes/lbs/_data/config/env
|
||||
```
|
||||
@@ -57,12 +71,12 @@ It is available here [@luxmedbot](https://telegram.me/luxmedbot)
|
||||
SECURITY_SECRET=randomly generated string
|
||||
TELEGRAM_TOKEN=12345678:telegram token
|
||||
```
|
||||
8. download [docker-compose.xml](https://raw.githubusercontent.com/dyrkin/luxmed-booking-service/master/docker/docker-compose.yml)
|
||||
9. go to folder with downloaded **docker-compose.xml** and run command:
|
||||
9. download [docker-compose.xml](https://raw.githubusercontent.com/dyrkin/luxmed-booking-service/master/docker/docker-compose.yml)
|
||||
10. go to folder with downloaded **docker-compose.xml** and run command:
|
||||
```bash
|
||||
$ docker-compose up
|
||||
```
|
||||
10. send `/start` command to your bot
|
||||
11. send `/start` command to your bot
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user