Add skyline port settings
1. skyline port can be set when skyline container starts 2. update readme Change-Id: Ic7f81e3d753c041fd5ea89268855d4b68086807d
This commit is contained in:
parent
fdd1064ab6
commit
068cf9c526
@ -69,7 +69,13 @@ Skyline 的吉祥物是九色鹿。九色鹿源自于敦煌壁画《九色鹿本
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker rm -f skyline_bootstrap
|
docker rm -f skyline_bootstrap
|
||||||
|
```
|
||||||
|
|
||||||
|
> 如果需要修改 skyline 端口号,则在以下命令中添加 `-e LISTEN_ADDRESS=<ip:port>`
|
||||||
|
>
|
||||||
|
> `LISTEN_ADDRESS` 默认为 `0.0.0.0:9999`
|
||||||
|
|
||||||
|
```bash
|
||||||
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml -v /tmp/skyline:/tmp --net=host 99cloud/skyline:latest
|
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml -v /tmp/skyline:/tmp --net=host 99cloud/skyline:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -133,7 +139,13 @@ Skyline 的吉祥物是九色鹿。九色鹿源自于敦煌壁画《九色鹿本
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker rm -f skyline_bootstrap
|
docker rm -f skyline_bootstrap
|
||||||
|
```
|
||||||
|
|
||||||
|
> 如果需要修改 skyline 端口号,则在以下命令中添加 `-e LISTEN_ADDRESS=<ip:port>`
|
||||||
|
>
|
||||||
|
> `LISTEN_ADDRESS` 默认为 `0.0.0.0:9999`
|
||||||
|
|
||||||
|
```bash
|
||||||
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml --net=host 99cloud/skyline:latest
|
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml --net=host 99cloud/skyline:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
12
README.md
12
README.md
@ -69,7 +69,13 @@ Skyline's mascot is the nine-color deer. The nine-color deer comes from Dunhuang
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker rm -f skyline_bootstrap
|
docker rm -f skyline_bootstrap
|
||||||
|
```
|
||||||
|
|
||||||
|
> If you need to modify skyline port, add `-e LISTEN_ADDRESS=<ip:port>` in the following command
|
||||||
|
>
|
||||||
|
> `LISTEN_ADDRESS` defaults to `0.0.0.0:9999`
|
||||||
|
|
||||||
|
```bash
|
||||||
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml -v /tmp/skyline:/tmp --net=host 99cloud/skyline:latest
|
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml -v /tmp/skyline:/tmp --net=host 99cloud/skyline:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -133,7 +139,13 @@ Skyline's mascot is the nine-color deer. The nine-color deer comes from Dunhuang
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker rm -f skyline_bootstrap
|
docker rm -f skyline_bootstrap
|
||||||
|
```
|
||||||
|
|
||||||
|
> If you need to modify skyline port, add `-e LISTEN_ADDRESS=<ip:port>` in the following command
|
||||||
|
>
|
||||||
|
> `LISTEN_ADDRESS` defaults to `0.0.0.0:9999`
|
||||||
|
|
||||||
|
```bash
|
||||||
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml --net=host 99cloud/skyline:latest
|
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml --net=host 99cloud/skyline:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -13,7 +13,12 @@ if [[ "${!KOLLA_BOOTSTRAP[*]}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "${LISTEN_ADDRESS}" ]]; then
|
||||||
|
skyline-nginx-generator -o /etc/nginx/nginx.conf --listen-address "${LISTEN_ADDRESS}"
|
||||||
|
else
|
||||||
skyline-nginx-generator -o /etc/nginx/nginx.conf
|
skyline-nginx-generator -o /etc/nginx/nginx.conf
|
||||||
|
fi
|
||||||
|
|
||||||
nginx
|
nginx
|
||||||
|
|
||||||
echo "Running command: ${CMD[*]}"
|
echo "Running command: ${CMD[*]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user