From 9025af366079d6fce2dbf930d324bd813d2aba5c Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 2 Mar 2024 22:27:52 +0100 Subject: [PATCH] Updated workflow and readme --- .gitea/workflows/build.yml | 1 + README.md | 47 +++++++++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 29ba252..85e3da1 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -45,6 +45,7 @@ jobs: build-docker-image: needs: build-jar runs-on: ubuntu-22.04 + if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') steps: - name: Initialize Docker runtime run: | diff --git a/README.md b/README.md index 6596347..1896f80 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,49 @@ Requirements: 1. Update `spring.profiles.active` in `application.properties` to `development` 2. Start external Backend and Database -3. Run `./gradlew bootRun ` in the root directory \ No newline at end of file +3. Run `./gradlew bootRun ` in the root directory + +# Running SharePulse using Docker +```yml +version: '3.8' + +services: + sharepulse: + image: git.walzen665.de/walzen665/sharepulse:latest + ports: + - "80:80" + environment: + # All Configurable parameters with default values + # Can be deleted if default values are used + RETHINKDB_HOST: rethinkdb + RETHINKDB_PORT: 28015 + RETHINKDB_DATABASE: sharepulse + SHAREPULSE_FILEPASSWORD_LENGTH: "6" + SHAREPULSE_FILEID_LENGTH: "6" + SHAREPULSE_TEMP_FILESTORE_PATH: "/temp-filestore" + SHAREPULSE_AUTO_RESET_ON_STARTUP: "true" + MAX_FILE_SIZE: "1GB" + MAX_REQUEST_SIZE: "1GB" + depends_on: + - rethinkdb + networks: + - sharepulse-net + + rethinkdb: + image: rethinkdb:latest + volumes: + - rethinkdb_data:/data + ports: + - "28015:28015" +# - "8080:8080" Webinterface of rethinkdb (optional and only accessible from localhost) + networks: + - sharepulse-net + +networks: + sharepulse-net: + external: false + +volumes: + rethinkdb_data: + +``` \ No newline at end of file