commit 30103be937a24aa3cd76614a9e57002644abf3af Author: wanggang <76527413@qq.com> Date: Mon Jun 21 10:55:53 2021 +0800 update diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8cf5ba5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,34 @@ +kind: pipeline +type: docker +name: test +platform: + arch: amd64 + os: linux +steps: + - name: test + image: docker/compose:1.29.2 + commands: + - docker-compose config + - mv .env .env.example + - name: deploy + image: appleboy/drone-scp:linux-amd64 + settings: + host: 49.4.92.112 + port: 9022 + username: root + password: + from_secret: ssh_password + target: /data/publish2/frp/publish + source: ./ + rm: false + - name: restart + image: appleboy/drone-ssh:linux-amd64 + settings: + host: 49.4.92.112 + port: 9022 + username: root + password: + from_secret: ssh_password + script: + - cd /data/publish2/frp/publish + - docker compose up --remove-orphans -d \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..aa7c315 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3.8" +services: + frps: + image: snowdreamtech/frps:0.37.0 + restart: always + network_mode: host + volumes: + - ./frp/frps.ini:/etc/frp/frps.ini diff --git a/frp/frps.ini b/frp/frps.ini new file mode 100644 index 0000000..4af4b56 --- /dev/null +++ b/frp/frps.ini @@ -0,0 +1,7 @@ +[common] +bind_port = 7000 +vhost_http_port = 80 +dashboard_port = 8000 +dashboard_user = admin +dashboard_pwd = admin +subdomain_host = iot.edusoa.com \ No newline at end of file