0 Star 2 Fork 1

高效能云计算数据中心关键技术与装备(多元化投入试点)/mesh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 4.33 KB
一键复制 编辑 原始数据 按行查看 历史
version: '2'
services:
sgcc-mysql:
build:
context: ./db
environment:
MYSQL_ROOT_PASSWORD: root
restart: always
container_name: sgcc-mysql
image: sgcc-mysql
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
--max_allowed_packet=128M
volumes:
- '/etc/localtime:/etc/localtime:ro'
- '/opt/sgcc/db/data:/var/lib/mysql'
ports:
- 13306:3306
networks:
- sgcc-net
sgcc-rabbitmq:
image: rabbitmq:3.8.3-management
container_name: sgcc-rabbitmq
restart: always
volumes:
- ./data:/var/lib/rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- 5672:5672
- 15672:15672
networks:
- sgcc-net
sgcc-redis:
image: redis:5.0
command: redis-server --requirepass sgcc123
ports:
- 6380:6379
restart: always
container_name: sgcc-redis
volumes:
- '/opt/sgcc/redis/data:/data'
networks:
- sgcc-net
sgcc-consul:
image: consul:latest
ports:
- 8500:8500
restart: always
container_name: sgcc-consul
networks:
- sgcc-net
sgcc-controller:
build:
context: ./controller
restart: always
container_name: sgcc-controller
image: sgcc-controller
links:
- sgcc-mysql
- sgcc-rabbitmq
- sgcc-redis
- sgcc-consul
volumes:
- '/opt/sgcc/controller:/mesh-controller/'
- '/var/log/sgcc/:/var/log/sgcc/'
- '/etc/localtime:/etc/localtime:ro'
- '/opt/sgcc/db/data:/var/lib/mysql'
environment:
- TZ=Asia/Shanghai
extra_hosts:
- 'sgcc.isc.com:192.168.203.49'
ports:
- 16010:16010
- 5050:5050
cap_add:
- SYS_PTRACE
networks:
- sgcc-net
sgcc-gateway:
build:
context: ./gateway
restart: always
container_name: sgcc-gateway
image: sgcc-gateway
environment:
- TZ=Asia/Shanghai
links:
- sgcc-controller
ports:
- 16017:16017
networks:
- sgcc-net
sgcc-portal:
build:
context: ./portal
restart: always
container_name: sgcc-portal
image: sgcc-portal
ports:
- 80:80
links:
- sgcc-gateway
volumes:
- '/opt/sgcc/dist/:/var/www/html/'
networks:
- sgcc-net
sgcc-monitor:
build:
context: ./monitor
restart: always
container_name: sgcc-monitor
image: sgcc-monitor
ports:
- 16016:16016
- 5051:5051
links:
- sgcc-gateway
- sgcc-consul
- sgcc-mysql
- sgcc-rabbitmq
- sgcc-redis
volumes:
- '/opt/sgcc/monitor:/mesh-monitor/'
- '/var/log/sgcc/:/var/log/sgcc/'
- '/etc/localtime:/etc/localtime:ro'
- '/opt/sgcc/db/data:/var/lib/mysql'
networks:
- sgcc-net
sgcc-migrate:
build:
context: ./migrate
restart: always
container_name: sgcc-migrate
image: sgcc-migrate
ports:
- 16018:16018
- 5052:5052
links:
- sgcc-gateway
- sgcc-consul
- sgcc-mysql
- sgcc-rabbitmq
- sgcc-redis
volumes:
- '/opt/sgcc/migrate:/mesh-migrate/'
- '/opt/sgcc/config/bootstrap.yml:/mesh-migrate/config/bootstrap.yml'
- '/var/log/sgcc/:/var/log/sgcc/'
- '/etc/localtime:/etc/localtime:ro'
networks:
- sgcc-net
sgcc-gce:
build:
context: ./gcloud-ce
restart: always
container_name: sgcc-gce
image: sgcc-gce
environment:
- TZ=Asia/Shanghai
ports:
- 8089:8089
links:
- sgcc-gateway
- sgcc-consul
- sgcc-mysql
- sgcc-rabbitmq
- sgcc-redis
networks:
- sgcc-net
sgcc-dns:
restart: always
container_name: sgcc-dns
image: sgcc-dns:latest
volumes:
- '/opt/sgcc/dns/config:/data'
environment:
- TZ=Asia/Shanghai
- WEBMIN_ENABLED=true
- ROOT_PASSWORD=sgcc123
ports:
- 53:53/udp
- 10000:10000/tcp
networks:
- sgcc-net
sgcc-velero:
build:
context: ./velero
restart: always
container_name: sgcc-velero
image: sgcc-velero:latest
environment:
- TZ=Asia/Shanghai
ports:
- 2020:2020/tcp
networks:
- sgcc-net
networks:
sgcc-net:
external: true
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/SG-HCDC/mesh.git
git@gitee.com:SG-HCDC/mesh.git
SG-HCDC
mesh
mesh
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385