fsr故障自愈系统,验证了下,有点意思,记录一下
cat docker-compose.yml version: '2.2' services: redis: container_name: fsr_redis image: redis:latest restart: always #command: redis-server /usr/local/etc/redis/redis.conf network_mode: "host" volumes: - ${REDIS_DIR}/conf/redis.conf:/usr/local/etc/redis/redis.conf - ${REDIS_DIR}/data:/data:rw command: /bin/bash -c "redis-server /usr/local/etc/redis/redis.conf " mysql: container_name: fsr_mysql image: mysql:5.6 network_mode: "host" volumes: - "${MYSQL_DIR}/data:/var/lib/mysql" - "${MYSQL_DIR}/conf.d:/etc/mysql/conf.d" - ./:/ncc/service/fsr environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} web: container_name: fsr_web image: opcache/prometheus:fsrv1 network_mode: "host" volumes: - ./:/ncc/service/fsr
项目地址和避坑指南如下
隐藏内容需要开通会员才可以看见
开通会员
请登录之后再进行评论