build: 配置 docker

This commit is contained in:
2026-05-23 12:50:44 +08:00
parent 62a905b17b
commit a577e9eefd
4 changed files with 61 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- GEN2D_MODE=release
- GEN2D_PORT=8080
expose:
- "8080"
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "10000:80"
depends_on:
- backend
restart: unless-stopped