odf_new/docker-compose.yml
zpc 9e44533d29
Some checks failed
continuous-integration/drone/push Build is failing
feat: 添加CI/CD配置和Docker部署文件
- 新增 .drone.yml 流水线配置(server/admin/web 三服务并行构建+部署)
- 新增 web/Dockerfile 和 web/nginx.conf(H5 Web Docker打包)
- 新增 docker-compose.yml(使用Harbor镜像部署)
- 新增 CI-CD部署文档.md
- 更新 server Dockerfile 基础镜像为内网Harbor地址
2026-03-26 10:39:01 +08:00

45 lines
1.1 KiB
YAML

services:
odf-new-server:
image: 192.168.195.25:19900/odf-new/server:latest
container_name: odf-new-server
privileged: true
ports:
- "${SERVER_PORT:-2861}:8888"
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
volumes:
- ./configs/server/appsettings.json:/app/appsettings.json
- ./files/export:/app/wwwroot/export
- ./files/adminlogs:/app/adminlogs
- ./files/DataProtection:/app/DataProtection
- ./files/file:/app/wwwroot/file
networks:
- code-network
odf-new-admin:
image: 192.168.195.25:19900/odf-new/admin:latest
container_name: odf-new-admin
ports:
- "${ADMIN_PORT:-2862}:80"
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
networks:
- code-network
odf-new-web:
image: 192.168.195.25:19900/odf-new/web:latest
container_name: odf-new-web
ports:
- "${WEB_PORT:-2860}:80"
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
networks:
- code-network
networks:
code-network:
external: true