docker-flask-example
A production ready example Flask app that's using Docker and Docker Compose.
File Explorer
Download Latest Version (.zip)- screenshot.jpg
- ci.yml
- FUNDING.yml
- app.css
- app.js
- flask.png
- 502.html
- android-chrome-192x192.png
- android-chrome-512x512.png
- apple-touch-icon.png
- browserconfig.xml
- favicon-16x16.png
- favicon-32x32.png
- favicon.ico
- maintenance.html
- mstile-150x150.png
- robots.txt
- safari-pinned-tab.svg
- site.webmanifest
- .yarnrc
- esbuild.config.mjs
- package.json
- tailwind.config.js
- yarn.lock
- docker-entrypoint-web
- rename-project
- uv-install
- __init__.py
- gunicorn.py
- settings.py
- .keep
- __init__.py
- env.py
- script.py.mako
- seeds.py
- home.html
- __init__.py
- views.py
- index.html
- __jnit__.py
- views.py
- __init__.py
- app.py
- extensions.py
- initializers.py
- test.py
- .keep
- __init__.py
- test_views.py
- __init__.py
- test_views.py
- __init__.py
- conftest.py
- .dockerignore
- .editorconfig
- .env.example
- .gitignore
- .hadolint.yaml
- alembic.ini
- CHANGELOG.md
- compose.yaml
- Dockerfile
- LICENSE
- pyproject.toml
- README.md
- run
- uv.lock
# Installation Guide
git clone https://github.com/nickjj/docker-flask-example
Downloads the entire project code from GitHub to your computer.
cd docker-flask-example
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
git clone https://github.com/nickjj/docker-flask-example helloflask
Downloads the entire project code from GitHub to your computer.
docker compose up --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
docker compose down
Runs the command against the services defined in the compose file.
- Log to STDOUT so that Docker can consume and deal with log output
Type this command into your terminal and run it.
Pulled directly from this repo's README.
3. Node.js
Easycd assets
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
4. Python
Easypip install .
Installs the package published on PyPI directly β no need to clone the source.
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
