refactor: 重构中间件和路由处理逻辑 fix: 修复音频示例API的错误处理 docs: 更新README和DOCKER_USAGE文档 style: 优化语言切换器样式 chore: 更新.gitignore添加生产环境配置文件
34 lines
695 B
YAML
34 lines
695 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-Web
|
|
image: simple-podcast-web
|
|
ports:
|
|
- "3200:3000"
|
|
volumes:
|
|
- audio-data/output:/app/server/output
|
|
- audio-data/sqlite.db:/app/web/sqlite.db
|
|
restart: always
|
|
depends_on:
|
|
- server
|
|
environment:
|
|
- NEXT_PUBLIC_API_URL=http://server:8000
|
|
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-Server
|
|
image: simple-podcast-server
|
|
ports:
|
|
- "3100:8000"
|
|
volumes:
|
|
- audio-data/output:/app/server/output
|
|
restart: always
|
|
environment:
|
|
- PODCAST_API_SECRET_KEY=your-production-api-secret-key
|
|
|
|
volumes:
|
|
audio-data: |