unis_crm/docker-compose.yml

33 lines
783 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

services:
crm:
container_name: unis-crm-backend
platform: linux/amd64
build:
context: ./backend
dockerfile: Dockerfile
restart: always
ports:
- "9001:8080"
volumes:
- /home/application/crm/logs:/app/logs
environment:
- TZ=Asia/Shanghai
- SPRING_PROFILES_ACTIVE=prod
frontend:
container_name: unis-crm-frontend
platform: linux/amd64
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "9002:80"
environment:
BACKEND_HOST: crm
BACKEND_PORT: "8080"
restart: unless-stopped
# 管理前端(原先独立部署在 :9003)已整合进 frontend 的 /admin/*,
# 由同一个前端容器提供;旧端口见 deploy/all-in-one 的 :8090 兼容跳转。