Skip to content

Commit

Permalink
Ignore all sqlite dbs (except samples); mount entire backend folder, …
Browse files Browse the repository at this point in the history
…exclude venv and node_modules (FE)
  • Loading branch information
anthony2261 committed Apr 6, 2024
1 parent 668dfd0 commit 5ff8997
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ text2sql-backend/coverage.xml
text2sql-backend/*.cover
text2sql-backend/*.log
text2sql-backend/.git
text2sql-backend/dataline/db.sqlite3

# Don't need tests or hooks
*/tests
Expand All @@ -32,8 +31,9 @@ images
# Exclude bruno
*/bruno

# Ignore testing SQLite DB
*/*.sqlite3
# Ignore all SQLite DBs, except for sample DBs
**/*.sqlite3
!**/samples/*.sqlite3

*/.storybook
*/node_modules/
Expand Down
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ services:
ports:
- "7377:7377"
volumes:
- dataline_dev:/home/.dataline # persist local sqlite db
- ./text2sql-backend/dataline:/home/dataline/backend/dataline
- dataline_dev:/home/.dataline # persist local sqlite db
# map local to remote folder, exclude venv
- ./text2sql-backend:/home/dataline/backend
- /home/dataline/backend/venv
networks:
- dataline

Expand All @@ -28,6 +30,8 @@ services:
ports:
- "5173:5173"
volumes:
# map local to remote folder, exclude node_modules
- ./text2sql-frontend:/app
- /app/node_modules
networks:
- dataline

0 comments on commit 5ff8997

Please sign in to comment.