使用Docker和Docker Compose创建可扩展的Flask应用示例

提供了一个示例Flask应用程序,通过使用Docker和Docker Compose,您可以将其用作新项目的基础,或者作为将现有Flask应用程序进行Docker化的指南。该示例应用程序展示了在现实世界中可能使用的许多功能,并遵循Docker最佳实践。它使用Flask 1.1.2和Python 3.9.2。您可以根据自己的喜好和需求,选择适合您的后端和前端技术栈。

zip
docker-flask-example-main.zip 预估大小:64个文件
folder
docker-flask-example-main 文件夹
file
.dockerignore 172B
file
.env.example 4KB
file
docker-compose.override.yml.example 335B
file
.flake8 59B
file
alembic.ini 2KB
folder
.github 文件夹
folder
docs 文件夹
file
screenshot.jpg 132KB
folder
workflows 文件夹
file
ci.yml 597B
file
run 3KB
folder
public 文件夹
folder
.keep 文件夹
folder
db 文件夹
file
env.py 3KB
file
seeds.py 279B
file
script.py.mako 494B
folder
__init__.py 文件夹
folder
versions 文件夹
folder
.keep 文件夹
file
Dockerfile 2KB
folder
lib 文件夹
file
test.py 316B
folder
hello 文件夹
file
app.py 2KB
folder
__init__.py 文件夹
folder
blueprints 文件夹
folder
__init__.py 文件夹
folder
page 文件夹
folder
__init__.py 文件夹
file
views.py 527B
folder
templates 文件夹
folder
page 文件夹
file
home.html 838B
folder
templates 文件夹
folder
layouts 文件夹
file
index.html 3KB
file
extensions.py 342B
file
requirements.txt 289B
folder
config 文件夹
file
settings.py 831B
folder
__init__.py 文件夹
file
gunicorn.py 455B
file
LICENSE 1KB
folder
assets 文件夹
file
postcss.config.js 128B
file
yarn.lock 210KB
file
webpack.config.js 2KB
file
tailwind.config.js 107B
file
.yarnrc 31B
folder
app 文件夹
folder
tailwind 文件夹
file
after.css 67B
file
before.css 28B
folder
app.js 文件夹
file
app.css 233B
file
package.json 815B
folder
static 文件夹
file
safari-pinned-tab.svg 2KB
file
robots.txt 185B
file
favicon.ico 15KB
folder
images 文件夹
file
flask.png 17KB
file
android-chrome-512x512.png 12KB
file
502.html 1019B
file
android-chrome-192x192.png 7KB
file
site.webmanifest 426B
file
apple-touch-icon.png 7KB
file
favicon-32x32.png 4KB
file
mstile-150x150.png 3KB
file
maintenance.html 892B
file
favicon-16x16.png 4KB
file
browserconfig.xml 246B
folder
test 文件夹
folder
__init__.py 文件夹
file
conftest.py 2KB
folder
blueprints 文件夹
folder
page 文件夹
file
test_views.py 474B
folder
__init__.py 文件夹
file
README.md 18KB
file
docker-compose.yml 2KB
file
.gitignore 3KB
file
requirements-lock.txt 792B
folder
bin 文件夹
file
pip3-install 370B
file
docker-entrypoint-web 496B
file
CHANGELOG.md 3KB
...
zip 文件大小:282.57KB