Files
Podcast-Generator/docker-compose.yml
hex2077 bf837a4fb0 chore(config): 添加配置卷映射到docker-compose.yml
为podcast-server服务添加了配置目录的卷映射,将主机的/opt/audio/config目录挂载到容器内的/app/config目录,以便于外部配置管理。
2025-10-05 23:14:56 +08:00

34 lines
683 B
YAML

version: '1.0.0'
services:
web:
build:
context: .
dockerfile: Dockerfile-Web
image: podcast-web
ports:
- "3200:3000"
volumes:
- /opt/audio/output:/app/server/output
- /opt/audio/sqlite.db:/app/web/sqlite.db
- /opt/audio/config:/app/config
restart: always
container_name: podcast-web
depends_on:
- server
server:
build:
context: .
dockerfile: Dockerfile-Server
image: podcast-server
ports:
- "3100:8000"
volumes:
- /opt/audio/output:/app/server/output
- /opt/audio/config:/app/config
restart: always
container_name: podcast-server
volumes:
audio-data: