docker pull yanhao98/frp-http-server
docker run -i --rm --name frp-http-server \
-e FRP_SUBDOMAIN_HOST=domain.com \
-e SERVER_IP=$(curl -4s ip.sb) \
-p 80:80 \
-p 7000:7000 \
yanhao98/frp-http-server
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--cleanup --run-once \
frp-http-server
Reference Links
- Dockerfile for ngx
- Dockerfile-for-frps
- Multi-arch frps's docker image
- https://github.com/snowdreamtech/frp/blob/master/frps/amd64/Dockerfile
- VBScript
- https://stackoverflow.com/questions/4888197/how-To-show-dos-output-when-using-vbscript-exec/4888791#4888791
- Frps服务端一键配置脚本
- frps-docker
- s6-overlay
- https://github.com/just-containers/s6-overlay
- https://skarnet.org/software/s6/index.html
- https://github.com/shinsenter/php/blob/main/src/base-s6/Dockerfile
- https://github.com/technotiger/CashReaper/blob/main/Dockerfile#L33-L34
- https://github.com/kufei326/nas-tools/blob/master/docker/rootfs/etc/s6-overlay/s6-rc.d/svc-nastools/run#L12-L14
rm /var/log/nginx/access.log /var/log/nginx/error.log
https://github.com/nginxinc/docker-nginx/blob/4bf0763f4977fff7e9648add59e0540088f3ca9f/mainline/debian/Dockerfile#L102
the nginx log is already redirected to stdout/stderr by default (see Dockerfile#L102)
if we delete the log file, nginx will create a new one, but the new one is not redirected to stdout/stderr