mirror of
https://github.com/stilleshan/dockerfiles.git
synced 2025-09-26 12:51:11 +08:00
add hideipnetwork-web
This commit is contained in:
10
hideipnetwork-web/Dockerfile
Normal file
10
hideipnetwork-web/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM ioiox/node:16-alpine
|
||||
LABEL maintainer="Stille <stille@ioiox.com>"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN git clone -b v2 https://github.com/Hideipnetwork/hideipnetwork-web.git . && npm install
|
||||
|
||||
EXPOSE 56559
|
||||
|
||||
CMD ["npm", "run", "start"]
|
40
hideipnetwork-web/README.md
Normal file
40
hideipnetwork-web/README.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# hideipnetwork-web
|
||||
|
||||
GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)
|
||||
Docker [stilleshan/hideipnetwork-web](https://hub.docker.com/r/stilleshan/hideipnetwork-web)
|
||||
> *docker image support for X86 and ARM*
|
||||
|
||||
## 简介
|
||||
基于 node 的在线浏览器项目的 docker 镜像.
|
||||
|
||||
## 使用
|
||||
### docker
|
||||
```bash
|
||||
docker run -d --name hideipnetwork -p 56559:56559 stilleshan/hideipnetwork-web
|
||||
```
|
||||
访问`127.0.0.1:56559`
|
||||
|
||||
### docker compose
|
||||
下载 [docker-compose.yml](https://raw.githubusercontent.com/stilleshan/dockerfiles/main/hideipnetwork-web/docker-compose.yml) 执行以下命令启动:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
### 反向代理参考
|
||||
```nginx
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:56559;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Ssl on;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Frame-Options SAMEORIGIN;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection upgrade;
|
||||
}
|
||||
```
|
||||
|
||||
## 参考
|
||||
- [自建在线网页代理](https://blog.tanglu.me/web-browser/)
|
8
hideipnetwork-web/docker-compose.yml
Normal file
8
hideipnetwork-web/docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
version: "3"
|
||||
services:
|
||||
browser:
|
||||
image: stilleshan/hideipnetwork-web
|
||||
container_name: hideipnetwork
|
||||
restart: always
|
||||
ports:
|
||||
- 56559:56559
|
Reference in New Issue
Block a user