Files
host_message/docker-compose.yml
2026-02-13 12:33:43 +08:00

25 lines
533 B
YAML
Raw 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.
version: '3.8'
services:
web:
build: .
ports:
- "8888:8888"
volumes:
- ./uploads:/app/uploads
environment:
- FORWARDED_ALLOW_IPS=*
- PROXY_HEADERS=1
restart: unless-stopped
# 可选添加nginx反向代理来更好地处理真实IP
nginx:
image: nginx:alpine
ports:
- "88:88"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- /mnt/server/host_message_files:/mnt/server/host_message_files
depends_on:
- web
restart: unless-stopped