Files
sino-mci/docker-compose.app.yml
marsal bef2f32cff fix(deploy): attach infra services to shared mci-network and fix mci-server Dockerfile
- Add mci-network to infrastructure services so app services can resolve mci-mysql
- Remove cross-project depends_on from docker-compose.app.yml
- Copy parent pom.xml in mci-server Dockerfile so child modules resolve sino-mci-parent
- Fix typo in local-up.sh RabbitMQ retry counter
2026-07-07 13:09:58 +08:00

46 lines
1.1 KiB
YAML

version: '3.8'
services:
mci-server:
build:
context: ./backend
dockerfile: mci-server/Dockerfile
container_name: mci-server
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:mysql://mci-mysql:3306/sino_mci?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=root
- SPRING_DATA_REDIS_HOST=mci-redis
- SPRING_RABBITMQ_HOST=mci-rabbitmq
networks:
- mci-network
admin-web:
build:
context: ./admin-web
dockerfile: Dockerfile
container_name: mci-admin-web
ports:
- "80:80"
networks:
- mci-network
channel-service:
build:
context: ./channel-service
dockerfile: Dockerfile
container_name: mci-channel-service
ports:
- "8000:8000"
environment:
- MCI_SERVER_URL=http://mci-server:8080/msg-platform
networks:
- mci-network
networks:
mci-network:
external: true