xStorage is an image hosting server written in Python using the Flask microframework.
API Documentation: https://documenter.getpostman.com/view/607407/Uyr4KKsu
See requirements.txt or setup.py file.
Create ${HOME}/xstorageserver.ini with settings:
[APP]
DEBUG = False
UPLOAD_FOLDER = /home/xstorage/UPLOAD
Nginx
uWSGI
Supervisor
Build base image
docker build -t xstorage-base -f Dockerfile .
Build app image
docker build -t xstorage-app -f Dockerfile-app .
version: '3'
services:
app:
image: vanzhiganov/xstorage-app:0.2.0
ports:
- "8080:8080"
volumes:
- ./extra/xstorageserver.ini:/etc/xstorage/config.ini
- ./extra/uwsgi.ini:/source/extra/uwsgi.ini
- ./tmp/UPLOAD:/data