-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
lint: #linter for code | ||
lint: # linter for code | ||
poetry run flake8 spend_bot | ||
start: #start bot | ||
start: # start bot | ||
poetry run python3 -m spend_bot.bot | ||
requirements: # update requirements.txt | ||
poetry export --output requirements.txt --without-hashes | ||
up: # build and start Docker container | ||
docker compose -f docker-compose.yml up --build -d | ||
logs: # container logs | ||
docker logs -f spend_bot | ||
enter: # enter into container | ||
docker exec -it spend_bot /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3.9' | ||
|
||
services: | ||
spend_bot: | ||
networks: | ||
- spent_bot_net | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: spend_bot | ||
env_file: | ||
- ./.env | ||
ports: | ||
- "0000:0000" | ||
restart: always | ||
entrypoint: ["python3", "-m", "spend_bot.bot"] | ||
|
||
networks: | ||
web_network: | ||
name: spent_bot_net |