加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
version: '3.8'
services:
mysql:
image: mysql:8.3.0
ports:
- "3306:3306"
volumes:
- /opt/lite/mysql/conf/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
- /opt/lite/mysql/data/:/var/lib/mysql/
privileged: true
environment:
- MYSQL_ROOT_PASSWORD=Abc123++
- MYSQL_DATABASE=iking_framework
- TZ=Asia/Shanghai
restart: always
container_name: mysql
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
start_period: 60s
redis:
image: redis:7.2.4
ports:
- "6379:6379"
volumes:
- /opt/lite/redis/data:/data
- /opt/lite/redis/config/redis.conf:/usr/local/etc/redis/redis.conf
privileged: true
restart: always
container_name: redis
command: redis-server --requirepass Abc123++ --appendonly yes --notify-keyspace-events Ex
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 20s
start_period: 60s
minio:
image: minio/minio:RELEASE.2024-01-31T20-20-33Z
ports:
- "9000:9000"
- "9090:9090"
volumes:
- /opt/lite/minio/data:/data
privileged: true
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=Abc123++
restart: always
container_name: minio
command: server /data --console-address ":9090" -address ":9000"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
interval: 30s
timeout: 20s
start_period: 60s
lite:
image: lite:1.1.4
ports:
- "8000:8000"
privileged: true
environment:
- SRV_PORT=8000
- MYSQL_HOST=172.17.0.1 #本机docker0网卡的ip地址
- MYSQL_PORT=3306
- MYSQL_SCHEMA_NAME=iking_framework
- MYSQL_USERNAME=root
- MYSQL_PASSWORD=Abc123++
- REDIS_HOST=172.17.0.1 #本机docker0网卡的ip地址
- REDIS_PORT=6379
- REDIS_DB=1
- REDIS_PASSWORD=Abc123++
- OSS_ENABLED=true
- OSS_STORAGE_TYPE=AWS_S3
- OSS_HOST=http://172.17.0.1:9000 #本机docker0网卡的ip地址
- OSS_ACCESS_KEY=minio
- OSS_SECRET_KEY=Abc123++
- OSS_DEFAULT_BUCKET=iking
- OSS_REGION=us-east-1
restart: always
container_name: lite
ui:
image: lite-ui:1.1.4
ports:
- "80:80"
privileged: true
restart: always
container_name: lite-ui
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化