🧪 添加 FileCodeBox 测试环境配置
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
FROM lanol/filecodebox:beta
|
||||
COPY fcb_extra_patch.py /tmp/fcb_extra_patch.py
|
||||
RUN python /tmp/fcb_extra_patch.py && rm -f /tmp/fcb_extra_patch.py
|
||||
@@ -0,0 +1,16 @@
|
||||
# FileCodeBox 测试环境
|
||||
|
||||
当前测试环境用于验证 `test/custom-admin-ui` 分支里的自定义镜像补丁,不影响生产环境。
|
||||
|
||||
- 容器名:`filecodebox-test`
|
||||
- 镜像:`local/filecodebox:test-custom-admin-ui`
|
||||
- 端口:`127.0.0.1:40158 -> 12345`
|
||||
- 数据:`/opt/1panel/apps/filecodebox/filecodebox-test/data`,从生产 `/app/data` 复制而来
|
||||
- 生产容器:`filecodebox`,继续使用官方镜像 `lanol/filecodebox:beta`
|
||||
|
||||
验证:
|
||||
|
||||
```bash
|
||||
curl -fsS http://127.0.0.1:40157/ | grep -qv fcb-analytics.js
|
||||
curl -fsS http://127.0.0.1:40158/ | grep 'fcb-analytics.js?v='
|
||||
```
|
||||
@@ -0,0 +1,19 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
filecodebox-test:
|
||||
container_name: filecodebox-test
|
||||
image: local/filecodebox:test-custom-admin-ui
|
||||
build:
|
||||
context: ./custom
|
||||
labels:
|
||||
createdBy: Apps
|
||||
env: test
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- 127.0.0.1:40158:12345
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
Reference in New Issue
Block a user