diff --git a/README.md b/README.md index 58cc0b3..0667a6a 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,20 @@ docker run -d \ sekipos ``` +Or ose this stack: +```yml +name: sekipos +services: + sekipos: + ports: + - 5000:5000 + volumes: + - YOUR_PATH/sekipos/db:/app/db + - YOUR_PATH/sekipos/static/cache:/app/static/cache + container_name: sekipos-server + image: sekipos +``` + ## 🔌 Hardware Scanner Bridge (`ScannerGO`) The server needs a bridge to talk to your physical COM port. Use the `ScannerGO` binary on the machine where the scanner is plugged in. diff --git a/app.py b/app.py index 5eb9c90..9577789 100644 --- a/app.py +++ b/app.py @@ -14,7 +14,7 @@ socketio = SocketIO(app, cors_allowed_origins="*") login_manager = LoginManager(app) login_manager.login_view = 'login' -DB_FILE = 'pos_database.db' +DB_FILE = 'db/pos_database.db' CACHE_DIR = 'static/cache' os.makedirs(CACHE_DIR, exist_ok=True) @@ -151,4 +151,4 @@ def serve_cache(filename): if __name__ == '__main__': init_db() - socketio.run(app, host='0.0.0.0', port=5000, debug=True) \ No newline at end of file + socketio.run(app, host='0.0.0.0', port=5000, debug=True) diff --git a/db/.gitignore b/db/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/db/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/pos_database.db b/pos_database.db deleted file mode 100644 index 079ff2b..0000000 Binary files a/pos_database.db and /dev/null differ