Updated workflow and readme

This commit is contained in:
Max W. 2024-03-02 22:27:52 +01:00
parent 374d2661c0
commit 9025af3660
2 changed files with 47 additions and 1 deletions

View File

@ -45,6 +45,7 @@ jobs:
build-docker-image: build-docker-image:
needs: build-jar needs: build-jar
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
steps: steps:
- name: Initialize Docker runtime - name: Initialize Docker runtime
run: | run: |

View File

@ -12,4 +12,49 @@ Requirements:
1. Update `spring.profiles.active` in `application.properties` to `development` 1. Update `spring.profiles.active` in `application.properties` to `development`
2. Start external Backend and Database 2. Start external Backend and Database
3. Run `./gradlew bootRun ` in the root directory 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:
```