fix: sub2api 加入 1panel-network 网络
Some checks failed
CI / test (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled

- 允许 sub2api 容器访问 1Panel Redis 容器
- 添加 1panel-network 为外部网络
- 保持通过容器名 1Panel-redis-S1KH 连接 Redis
This commit is contained in:
huangzhenpc
2026-01-04 11:28:25 +08:00
parent b57334b82c
commit 106d8d8e57

View File

@@ -67,6 +67,7 @@ services:
- "host.docker.internal:host-gateway"
networks:
- sub2api-network
- 1panel-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
@@ -116,3 +117,5 @@ volumes:
networks:
sub2api-network:
driver: bridge
1panel-network:
external: true