Files
admin/www/docker-compose.yml
2026-08-11 16:45:25 +08:00

29 lines
844 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
x-logging: &default-logging
driver: json-file
options:
max-size: "10m"
max-file: "5"
services:
www:
image: nginx:alpine
container_name: www-frontend
ports:
# 宿主机 8081 → 容器 80
- "8081:80"
volumes:
# Nuxt SPA 构建产物(nuxt buildssr:false 时静态文件在 .output/public
- /data/project/dashboard/www/.output/public:/usr/share/nginx/html:ro
- /data/project/dashboard/www/nginx.conf:/etc/nginx/conf.d/default.conf:ro
restart: unless-stopped
logging: *default-logging
networks:
# 复用 dashboard compose 创建的网络,容器内可用服务名 backend 访问 CMS API
- audio-network
networks:
audio-network:
external: true
# dashboard compose(项目名 dashboard)创建的桥接网络
name: dashboard_audio-network