Service accept file by curl command or via simple UI and store it on disk.
- Java 11 (Zulu)
Default locations for uploads is /app/upload
docker run -it --rm -p 8000:8000 -v `pwd`/upload:/app/upload --name webapp to4kin/webapp:latest
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:
java -jar build/libs/webapp-<APP_VERSION>.jar
server.port=8000
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=10MB
storage.uploadFolder=upload