Add Docker support and GitHub Actions workflow

This commit is contained in:
2026-04-27 10:38:22 +08:00
parent c6154273f2
commit 2caef17124
6 changed files with 159 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: sale-backend
ports:
- "8080:8080"
volumes:
- ./backend/uploads:/app/uploads
- ./backend/sale.db:/app/sale.db
environment:
- DATABASE_PATH=sale.db
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: sale-frontend
ports:
- "80:80"
depends_on:
- backend
restart: unless-stopped