代码拉取完成,页面将自动刷新
同步操作将从 ktianc/kinit 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: "3"
services:
kinit-api:
container_name: kinit-api
restart: always
ports:
- "9000:9000"
expose:
- "9000"
build:
context: ./
dockerfile: ./docker_env/kinit-api/Dockerfile
environment:
TZ: "Asia/Shanghai"
volumes:
- ./kinit-api:/app
networks:
kinit_network:
ipv4_address: "177.8.0.2"
kinit-admin:
container_name: kinit-admin
restart: always
ports:
- "80:80"
expose:
- "80"
image: nginx:latest
environment:
TZ: "Asia/Shanghai"
volumes:
- ./docker_env/kinit-admin/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./:/usr/share/nginx/html
networks:
kinit_network:
ipv4_address: "177.8.0.3"
kinit-task:
container_name: kinit-task
restart: always
build:
context: ./
dockerfile: ./docker_env/kinit-task/Dockerfile
environment:
TZ: "Asia/Shanghai"
volumes:
- ./kinit-task:/app
networks:
kinit_network:
ipv4_address: "177.8.0.4"
kinit-redis:
container_name: kinit-redis
restart: always
image: redis:latest
ports:
- "6379:6379"
expose:
- "6379"
volumes:
- ./docker_env/redis/conf/redis.conf:/etc/redis/redis.conf
environment:
TZ: "Asia/Shanghai"
networks:
kinit_network:
ipv4_address: "177.8.0.5"
command: redis-server /etc/redis/redis.conf
kinit-mongo:
container_name: kinit-mongo
restart: always
image: mongo:latest
ports:
- "27017:27017"
expose:
- "27017"
volumes:
- ./docker_env/mongo/data:/data/db
- ./docker_env/mongo/log:/data/log
- ./docker_env/mongo/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js # 挂载初始化脚本
environment:
MONGO_INITDB_ROOT_USERNAME: admin # root 用户名
MONGO_INITDB_ROOT_PASSWORD: 123456 # root 用户密码
TZ: "Asia/Shanghai" # 设置时区
networks:
kinit_network:
ipv4_address: "177.8.0.6"
command: mongod --auth --bind_ip 0.0.0.0 # 启用身份验证和允许从任何IP连接
kinit-mysql:
container_name: kinit-mysql
restart: always
image: mysql:latest
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- ./docker_env/mysql/conf:/etc/mysql/conf.d
- ./docker_env/mysql/data:/var/lib/mysql
- ./docker_env/mysql/logs:/logs
environment:
TZ: "Asia/Shanghai"
MYSQL_ROOT_PASSWORD: "123456"
MYSQL_DATABASE: "kinit"
networks:
kinit_network:
ipv4_address: "177.8.0.7"
networks:
kinit_network:
driver: bridge
ipam:
driver: default
config:
- subnet: "177.8.0.0/16"
gateway: "177.8.0.1"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。