# Enhance CCDB Web and Database Deployment with Docker #102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
test_ccdb
) fromccdb.mysql.sql
following proper SQL dump ordering.test_user
withtest_password
for local development and deployment.requirements-web.txt
file, addingcryptography
for SQLAlchemy provider compatibility.ccdbweb.py
's__main__
for Gunicorn-based deployment, exposing it to external IPs from the container.ccdbweb
.Key Changes
Docker Compose
mysqldb
: Builds and initializes the database using MySQL with SQL dump files.webgui
: Builds the Flask-basedccdbweb
GUI and connects tomysqldb
.mysql_data
.mysql_init_data
.app_network
.Dockerfiles
docker/mysqldb/Dockerfile
):test_user_init.sql
,ccdb.mysql.sql
) with numeric prefixes for proper execution order.3306
.docker/webgui/Dockerfile
):requirements-web.txt
for web-specific dependencies.5000
.Code Updates
ccdbweb.py
:SQL_CONNECTION_STRING
for flexible database connectivity using environment variables.requirements-web.txt
:requirements.txt
:cryptography
to address SQLAlchemy provider needs.Usage Instructions
To run the
ccdbweb
application locally with the test database: