docker FIX

This commit is contained in:
Shiro-Nek0
2026-02-26 00:34:36 -03:00
parent 1e6778f2bf
commit d8b710805f
4 changed files with 18 additions and 2 deletions

View File

@@ -26,6 +26,20 @@ docker run -d \
sekipos 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`) ## 🔌 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. 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.

4
app.py
View File

@@ -14,7 +14,7 @@ socketio = SocketIO(app, cors_allowed_origins="*")
login_manager = LoginManager(app) login_manager = LoginManager(app)
login_manager.login_view = 'login' login_manager.login_view = 'login'
DB_FILE = 'pos_database.db' DB_FILE = 'db/pos_database.db'
CACHE_DIR = 'static/cache' CACHE_DIR = 'static/cache'
os.makedirs(CACHE_DIR, exist_ok=True) os.makedirs(CACHE_DIR, exist_ok=True)
@@ -151,4 +151,4 @@ def serve_cache(filename):
if __name__ == '__main__': if __name__ == '__main__':
init_db() init_db()
socketio.run(app, host='0.0.0.0', port=5000, debug=True) socketio.run(app, host='0.0.0.0', port=5000, debug=True)

2
db/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore

Binary file not shown.