Implement server-side order persistence with SQLite and Flask API

This commit is contained in:
MayaChat
2025-11-24 13:24:10 -05:00
parent 8df02cee18
commit 8b9ffbc586
5 changed files with 317 additions and 8 deletions

View File

@@ -37,3 +37,21 @@ services:
options:
max-size: "5m"
max-file: "2"
order-service:
image: python:3.10-slim
container_name: services-homepage-order-service
working_dir: /app
volumes:
- ./backend/order-service.py:/app/order-service.py:ro
- order-data:/data
command: ["sh", "-c", "pip install flask && python order-service.py"]
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "5m"
max-file: "2"
volumes:
order-data: