Implement server-side order persistence with SQLite and Flask API
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user