Skip to content

Commit

Permalink
Fix database creation in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
j-waters authored and edeng23 committed Feb 22, 2021
1 parent 0e12ac8 commit 99786b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from models import *

engine = create_engine("sqlite:///crypto_trading.db")
engine = create_engine("sqlite:///data/crypto_trading.db")

SessionMaker = sessionmaker(bind=engine)
SessionMaker()
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ services:
- ./user.cfg:/app/user.cfg
- ./.current_coin:/app/.current_coin
- ./.current_coin_table:/app/.current_coin_table
- ./crypto_trading.db:/app/crypto_trading.db
- ./data:/app/data

0 comments on commit 99786b9

Please sign in to comment.