Sign inSign up

to4kin/webapp

By to4kin

•Updated about 5 years ago

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

Image
0

2.4K

to4kin/webapp repository overview

ci-build GitHub release

⁠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

Tag summary

Content type

Image

Digest

Size

154.9 MB

Last updated

about 5 years ago

docker pull to4kin/webapp