代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。