Flask-based server for file upload/download and messages.
cd services/web
First, install requirements with pip install -r requirements.txt
python3 app.py
will run on port 5000
Uses Flask development server.
-
Update the environment variables in the docker-compose.yml and .env.dev files.
-
Build the images and run the containers:
docker-compose up -d --build
-
Navigate to http://localhost:5000/ to view the web application. The "web" folder is mounted into the container and your code changes apply automatically.
Note
Check for errors in the logs if this doesn't work viadocker-compose logs -f
.
Bring down the development containers (and the associated volumes with the -v
flag):
docker-compose down -v
Uses Gunicorn + nginx.
-
Update the environment variables in the docker-compose.prod.yml and .env.prod files.
-
Build the production images and spin up the containers:
docker-compose -f docker-compose.prod.yml up -d --build
-
Ensure the app is up and running at http://localhost:1337. The "web/uploads" folder is mounted. To apply source code changes, the image must be re-built.
Note
Again, if the container fails to start, check for errors in the logs viadocker-compose -f docker-compose.prod.yml logs -f
.
- File upload/download
- Click to copy messages
- Display available storage
- Consistent text formatting (useful for code snippets)