From d8b710805f61482a3e1d9bdcba08aafff5074d05 Mon Sep 17 00:00:00 2001 From: Shiro-Nek0 Date: Thu, 26 Feb 2026 00:34:36 -0300 Subject: [PATCH] docker FIX --- README.md | 14 ++++++++++++++ app.py | 4 ++-- db/.gitignore | 2 ++ pos_database.db | Bin 20480 -> 0 bytes 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 db/.gitignore delete mode 100644 pos_database.db 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 079ff2bd11b4e23f25a4c17f5a9bc3976eda987e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20480 zcmeI%O>fgM7zgkqZTBW^0SPJMFv*9ZGO4U_-ZN=}uBy=J7;EVS<5D?^GlKd?l8TpG zxs5NyC*ULO!WZBON78IX^iafM;sAduv0cl4`uL|@;yi5~Mky!ZFz&OI=)w&_6om(b z2!c?$y0a!PQdSqQ`qM`IrN5|K5_Ue`T9>~I#f@`8ek6b1IG1lPnv8J>KmY;|fB*y_ z009U<00I#B4+JLbg=J-PQ=Ifu=Jog}9tLASO=fMe-fq-74brLYA2!Hrl&p~j<*vtK ze;9DmX*}baAVExPCN){*bImsd)R!G!mXS_R(d-;;>YH>-aZ;C=R z2>9FNbuW8M?y_+@%zt-h33TbKSDFaovZ5&Bq?>PGobWiwD`_tEeCRiMM*%rF>NFlU z+VfdY*Zs_#oE#mrP8!(;SdzRM#=&LI+tQM@Bfk<3-YI|LV*ATAOHaf zKmY;|fB*y_009U<;F<)QQmMQrHEl