Skip to content
/ webapp Public

Service accept file by curl command or via simple UI and store it on disk

Notifications You must be signed in to change notification settings

to4kin/webapp

Repository files navigation

ci-build GitHub release codecov

WebApp

Service accept file by curl command or via simple UI and store it on disk.

GitHub
Docker

Precondition

  • Java 11 (Zulu)

Start via Docker

Default locations for uploads is /app/upload

docker run -it --rm -p 8000:8000 -v `pwd`/upload:/app/upload --name webapp to4kin/webapp:latest

Start via Docker-compose

Example stack.yml for webapp:

version: '3.8'

services:

  webapp:
    image: to4kin/webapp:latest
    restart: always
    ports:
      - 8000:8000
    volumes:
      - upload-volume:/app/upload

  webapp-sidecar:
    image: to4kin/webapp-sidecar:latest
    restart: always
    ports:
      - 3000:3000
    volumes:
      - upload-volume:/upload

volumes:
  upload-volume:

Start via java -jar

java -jar build/libs/webapp-<APP_VERSION>.jar

Config file

server.port=8000

spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=10MB

storage.uploadFolder=upload

About

Service accept file by curl command or via simple UI and store it on disk

Resources

Stars

Watchers

Forks

Packages

No packages published