# lunar-server 容器编排(doc79 同机部署) # 用法:保存到 /opt/lunar/docker-compose.yml,先创建 /opt/lunar/production/.env # (包含全部生产环境变量,见 PULL_DEPLOY.md),然后: # docker compose up -d # 之后 CI 产物由 deploy-watch.sh 自动替换 /opt/lunar/production/current 并重启容器。 services: lunar-server: image: golang:1.22-bookworm container_name: lunar-server working_dir: /app volumes: - /opt/lunar/production/current:/app ports: - "127.0.0.1:8080:8080" # 只监听本机,对外由 nginx 反代 lunar.neatcn.com env_file: - /opt/lunar/production/.env restart: unless-stopped command: /app/bin/server