This commit is contained in:
Simone Tesini 2025-08-01 20:59:41 +02:00
commit dab8270bce
3 changed files with 18 additions and 18 deletions

View file

@ -43,6 +43,6 @@ def join():
return {"success": True, "ws": f"/ws/{room_id}"}
init_db()
if __name__ == "__main__":
init_db()
app.run(debug=True)

View file

@ -2,5 +2,5 @@ import sqlite3
def get_connection():
conn = sqlite3.connect("jukebox.db")
conn = sqlite3.connect(".data/jukebox.db")
return conn

View file

@ -1,18 +1,18 @@
services:
backend:
build: ./backend
ports:
- 5001:5000
environment:
NODE_ENV: development
volumes:
- ./backend:/app
- ./.data/jukebox.sqlite3:/app/.data/jukebox.sqlite3
backend:
build: ./backend
ports:
- 5001:5000
environment:
NODE_ENV: development
volumes:
- ./backend:/app
- ./.data:/app/.data
frontend:
build: ./frontend
ports:
- 5173:5173
volumes:
- ./frontend:/app
- /app/node_modules
frontend:
build: ./frontend
ports:
- 5173:5173
volumes:
- ./frontend:/app
- /app/node_modules