1 Star 0 Fork 297

Jalon/kinit

forked from ktianc/kinit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.70 KB
一键复制 编辑 原始数据 按行查看 历史
ktianc 提交于 2023-09-22 15:22 . 3.0.0b1
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"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Mr-Jalon/kinit.git
git@gitee.com:Mr-Jalon/kinit.git
Mr-Jalon
kinit
kinit
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385