GithubHelp home page GithubHelp logo

fastapi-filestore's Introduction

fastapi-filestore

This repository is FastAPI Filestore APP

Requirement for FastAPI

  • Python >= 3
  • FastAPI >= 0.70.0

Container Information

Tags

  • latest : This image is latest.

Default ID/PASSWD

ENV FILESTORE_ID="root" \
    FILESTORE_PASS="testtest"

if you want change id/passwd,

  • run docker/podman
    $ podman run -e FILESTORE_ID="changeid" -e FILESTORE_PASS="changeme" ....
    or
    $ docker run -e FILESTORE_ID="changeid" -e FILESTORE_PASS="changeme" ....

Run

$ podman run -d --name filestore quay.io/chhanz/fastapi-filestore
or
$ docker run -d --name filestore docker.io/han0495/fastapi-filestore

Mount Volume

if you want mount volume,

  • run docker/podman
    $ podman -v /root/upload:/usr/src/app/upload ....
    or
    $ docker -v /root/upload:/usr/src/app/upload ....

Expose Port

if you want expose port,

  • run docker/podman
    $ podman -p 30020:9090 ....
    or
    $ docker -p 30020:9090 ....

Dockerfile

FROM python:3.10.1-alpine3.15
MAINTAINER [email protected]

ENV FILESTORE_ID="root" \
    FILESTORE_PASS="testtest"

WORKDIR /usr/src/app

COPY . .
RUN mkdir /usr/src/app/upload \
    && pip install --no-cache-dir -r requirements.txt

CMD [ "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9090" ]

Build

$ git clone https://github.com/chhanz/fastapi-filestore.git
$ cd fastapi-filestore
$ docker build -t fastapi-filestore .

How to use 'filecmd'

Preview 'index'

fastapi-filestore's People

Contributors

chhanz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.