21 lines
489 B
YAML
21 lines
489 B
YAML
services:
|
|
backend:
|
|
build: ./backend
|
|
container_name: convention-backend
|
|
ports:
|
|
- "44310:8000"
|
|
volumes:
|
|
- ./backend/data:/app/data # SQLite 文件持久化
|
|
environment:
|
|
- SECRET_KEY=your-long-random-string
|
|
- DATABASE_URL=sqlite:///./data/convention.db
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
container_name: convention-frontend
|
|
ports:
|
|
- "4431:80"
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped |