Skip to content

Migrate UAT environment from PostgreSQL to MySQL#2

Merged
bduke-dev merged 3 commits intomainfrom
copilot/modify-dockerfile-to-use-mysql
Feb 3, 2026
Merged

Migrate UAT environment from PostgreSQL to MySQL#2
bduke-dev merged 3 commits intomainfrom
copilot/modify-dockerfile-to-use-mysql

Conversation

Copy link

Copilot AI commented Feb 3, 2026

Replaces PostgreSQL dependencies with MySQL for the UAT runtime environment and adds MySQL service to docker-compose orchestration.

Changes

Dockerfile

  • runtime-uat stage: Replaced postgresql-client with default-mysql-client

pyproject.toml

  • UAT dependency group: Replaced psycopg2-binary with mysqlclient==2.2.7

docker-compose.yml

  • Added mysql:8.0 service with:
    • Health check using application credentials
    • Named volume for data persistence
    • Configurable ports and credentials via environment variables
  • Updated parts_webapi service:
    • Added depends_on with health check condition
    • Set MySQL defaults: DB_HOST=mysql, DB_PORT=3306, DB_ENGINE=django.db.backends.mysql

Configuration

Requires these environment variables:

  • DB_NAME, DB_USER, DB_PASSWORD - MySQL application credentials
  • DB_ROOT_PASSWORD - Optional, defaults to "rootpassword"
  • MYSQL_CONTAINER_NAME, MYSQL_PORT - Optional overrides
Original prompt

Modify my docker file runtime-uat to remove postgres dependencies and introduce mysql, also in my docker file add a mysql db and link it to the parts_webapi


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 3, 2026 01:34
Co-authored-by: bduke-dev <7875574+bduke-dev@users.noreply.github.com>
Co-authored-by: bduke-dev <7875574+bduke-dev@users.noreply.github.com>
Copilot AI changed the title [WIP] Modify Dockerfile to remove Postgres and add MySQL Migrate UAT environment from PostgreSQL to MySQL Feb 3, 2026
Copilot AI requested a review from bduke-dev February 3, 2026 01:37
@bduke-dev bduke-dev marked this pull request as ready for review February 3, 2026 02:03
@bduke-dev bduke-dev merged commit 3ff7b35 into main Feb 3, 2026
@bduke-dev bduke-dev deleted the copilot/modify-dockerfile-to-use-mysql branch February 3, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants