orztv
commited on
Commit
·
2f8135b
1
Parent(s):
b79631b
update
Browse files- start.sh +4 -0
- traefik/traefik.yml +1 -1
start.sh
CHANGED
@@ -114,5 +114,9 @@ echo "$services" | while read -r service; do
|
|
114 |
fi
|
115 |
done
|
116 |
|
|
|
|
|
|
|
|
|
117 |
# 启动 Traefik
|
118 |
exec traefik --configFile=$TRAEFIK_CONFIG_FILE
|
|
|
114 |
fi
|
115 |
done
|
116 |
|
117 |
+
# 替换 Traefik 配置文件中的环境变量
|
118 |
+
envsubst < $TRAEFIK_CONFIG_FILE > /tmp/traefik.yml
|
119 |
+
mv /tmp/traefik.yml $TRAEFIK_CONFIG_FILE
|
120 |
+
|
121 |
# 启动 Traefik
|
122 |
exec traefik --configFile=$TRAEFIK_CONFIG_FILE
|
traefik/traefik.yml
CHANGED
@@ -7,7 +7,7 @@ log:
|
|
7 |
|
8 |
entryPoints:
|
9 |
web:
|
10 |
-
address: "
|
11 |
|
12 |
providers:
|
13 |
file:
|
|
|
7 |
|
8 |
entryPoints:
|
9 |
web:
|
10 |
+
address: ":7860" # 直接使用固定端口号
|
11 |
|
12 |
providers:
|
13 |
file:
|