fix: sub2api 加入 1panel-network 网络
- 允许 sub2api 容器访问 1Panel Redis 容器 - 添加 1panel-network 为外部网络 - 保持通过容器名 1Panel-redis-S1KH 连接 Redis
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user