Skip to content

Commit

Permalink
feat: add docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
wandeder committed Oct 11, 2023
1 parent 2311666 commit 15d71a5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
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
20 changes: 20 additions & 0 deletions docker-compose.yml
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

0 comments on commit 15d71a5

Please sign in to comment.