Skip to content

Commit

Permalink
Transform manual for compose
Browse files Browse the repository at this point in the history
  • Loading branch information
NPodlozhniy authored Feb 25, 2023
1 parent a47ee05 commit 1be1f03
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,21 @@ The only thing you should do is to set an environment variable - the token of yo
export TOKEN=<YOUR TOKEN> (use 'set' instead of 'export' for Windows)
```

Then copy the content of [run.sh](https://github.com/NPodlozhniy/movies-watchlist/blob/master/run.sh) and execute using command line interface

_Important Notes:_

a) For `Windows` you should replace Linux speciefic syntax: `$TOKEN` with `%TOKEN%` and `$pwd` with `%cd%` etc

b) if it doesn't work transform the commands into the one row
Then you can build the app with just one command
``` bash
docker-compose up -d
```

_Important Note: If the command doesn't work, try to drop the dash and use just `docker compose ...`_

Since you have run one of the command and the necessary container are set further you can start and stop your app simply using
Since you have run the command and all the necessary containers are set further you can start and stop your app simply using
``` bash
docker start database
docker start tgbot
docker start superset

docker stop database
docker stop tgbot
docker stop superset
docker-compose stop
docker-compose start
```
Also you can easily access the logs using
``` bash
docker logs -t tgbot
docker-compose logs backend
```

### Addition
Expand Down

0 comments on commit 1be1f03

Please sign in to comment.