diff --git a/.gitea/workflows/ntfy.yaml b/.gitea/workflows/ntfy.yaml new file mode 100644 index 0000000..e672077 --- /dev/null +++ b/.gitea/workflows/ntfy.yaml @@ -0,0 +1,25 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 + +on: + push: + paths: + - ntfy/** + +env: + app_folder: ntfy + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - name: Execute remote SSH commands using password + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.HOST }} + username: geezo + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + cd /home/geezo/docker_containers && \ + ./restart_container.sh ${{ env.app_folder }} \ No newline at end of file diff --git a/ntfy/docker_compose.yml b/ntfy/docker_compose.yml new file mode 100644 index 0000000..bd0ce5b --- /dev/null +++ b/ntfy/docker_compose.yml @@ -0,0 +1,15 @@ +services: + ntfy: + image: binwiederhier/ntfy + container_name: ntfy + command: + - serve + environment: + - TZ=UTC # optional: Change to your desired timezone + user: UID:GID # optional: Set custom user/group or uid/gid + volumes: + - /var/cache/ntfy:/var/cache/ntfy + - /etc/ntfy:/etc/ntfy + ports: + - 1028:80 + restart: unless-stopped