1、创建专属桥接网络 {#1%E3%80%81%E5%88%9B%E5%BB%BA%E4%B8%93%E5%B1%9E%E6%A1%A5%E6%8E%A5%E7%BD%91%E7%BB%9C}
若已创建,可跳过此步骤。 https://www.hcjike.com/archives/tMUqkbKb
2、部署MaxKb服务 {#2%E3%80%81%E9%83%A8%E7%BD%B2maxkb%E6%9C%8D%E5%8A%A1}
创建项目
Compose配置:
services:
maxkb:
image: 1panel/maxkb:latest
container_name: maxkb
restart: unless-stopped
deploy:
resources:
limits:
cpus: 0.0
memory: 8G
ports:
- 11320:8080
networks:
- app_network
volumes:
- ./data:/var/lib/postgresql/data
- ./python-packages:/opt/maxkb/app/sandbox/python-packages
networks:
app_network:
external: true
cpus: 0.0
:CPU核数限制,设置为0.0
表示不限制
,不能填写整数;
memory: 8G
:内存上限限制8G
。
更多信息参考: https://www.hcjike.com/archives/X1imyATE