Skip to content

Upgrade Docker to PHP 8.4 and MySQL 8.0, remove composer.lock.#581

Merged
terabytesoftw merged 14 commits intoyiisoft:masterfrom
terabytesoftw:docker-php-8.4
Mar 17, 2026
Merged

Upgrade Docker to PHP 8.4 and MySQL 8.0, remove composer.lock.#581
terabytesoftw merged 14 commits intoyiisoft:masterfrom
terabytesoftw:docker-php-8.4

Conversation

@terabytesoftw
Copy link
Copy Markdown
Member

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Tests pass?

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Docker-based development/CI setup to run on PHP 8.4, aligning container runtime with the repository’s modern PHP support and adding a Docker-focused GitHub Actions workflow.

Changes:

  • Upgrade frontend/backend Docker images to yiisoftware/yii2-php:8.4-apache and add a shared custom entrypoint.
  • Update docker-compose.yml build configuration and bump MySQL image to 8.0.
  • Add a new .github/workflows/docker.yml workflow to build containers, init the app, health-check, and run Codeception.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
frontend/Dockerfile Moves frontend container to PHP 8.4 and wires in the custom entrypoint.
backend/Dockerfile Moves backend container to PHP 8.4 and wires in the custom entrypoint.
docker-entrypoint.sh New entrypoint intended to update Composer deps then start Apache.
docker-compose.yml Updates build contexts/dockerfile paths and bumps MySQL to 8.0.
composer.lock Updates locked dependencies/refs (likely to support newer PHP).
README.md Documents PHP requirements and adds Docker setup/CI badge/instructions.
.github/workflows/docker.yml Adds Docker-based CI job to build/health-check and run Codeception.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/docker.yml
Comment thread .github/workflows/docker.yml
Comment thread docker-entrypoint.sh Outdated
Comment thread docker-entrypoint.sh Outdated
Comment thread docker-compose.yml Outdated
Comment thread README.md Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Docker-based development/CI setup to target newer runtime versions and adds a dedicated GitHub Actions workflow to validate the Docker environment.

Changes:

  • Bump frontend/backend Docker base images to yiisoftware/yii2-php:8.4-apache.
  • Update docker-compose.yml to use mysql:8.0 (and refresh the commented Postgres version).
  • Add a Docker CI workflow and expand README with Docker setup/testing instructions; refresh composer.lock.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
frontend/Dockerfile Updates the Apache PHP base image to 8.4.
backend/Dockerfile Updates the Apache PHP base image to 8.4.
docker-compose.yml Switches MySQL image to 8.0 and updates commented Postgres version.
composer.lock Updates locked dependency metadata (including VCS URLs).
README.md Adds Docker section and installation/testing instructions.
.github/workflows/docker.yml Adds a CI workflow that builds/starts containers and runs migrations/tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/docker.yml
Comment thread .github/workflows/docker.yml
Comment thread README.md Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Docker-based development/CI setup to run on newer runtime versions (PHP 8.4 Apache images and newer DB images), and documents/automates Docker-based testing via GitHub Actions.

Changes:

  • Bump frontend/backend Docker images from yiisoftware/yii2-php:8.1-apache to 8.4-apache.
  • Update docker-compose.yml to remove the Compose version field and upgrade MySQL from 5.7 to 8.0 (and update the commented Postgres example).
  • Add a dedicated Docker GitHub Actions workflow and expand README instructions for Docker usage; update actions/checkout version in CI.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
frontend/Dockerfile Switches Apache PHP base image to 8.4 for the frontend container.
backend/Dockerfile Switches Apache PHP base image to 8.4 for the backend container.
docker-compose.yml Removes legacy compose version and upgrades MySQL image version.
composer.lock Updates locked dependency metadata/refs (notably changes one source URL).
README.md Adds/extends Docker install + testing documentation and a Docker workflow badge.
.github/workflows/docker.yml New workflow that builds/runs Docker Compose, initializes the app, migrates DB, and runs Codeception.
.github/workflows/build.yml Aligns checkout action version with other workflows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/docker.yml
Comment thread README.md
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Docker and CI setup to run on newer runtime images (PHP 8.4 in Apache containers) and refreshes related infrastructure/docs for the Yii2 advanced template.

Changes:

  • Bump frontend/backend Docker base images to yiisoftware/yii2-php:8.4-apache.
  • Update Docker Compose database images (MySQL 8.0; Postgres example updated) and expand README with Docker usage/testing instructions.
  • Add a dedicated GitHub Actions workflow to build/run the Docker environment and execute migrations + Codeception tests; align actions/checkout version in build.yml.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/Dockerfile Switch base image to PHP 8.4 Apache variant.
backend/Dockerfile Switch base image to PHP 8.4 Apache variant.
docker-compose.yml Remove compose version, bump MySQL image to 8.0, update Postgres example version.
composer.lock Refresh locked dependency metadata/refs (notably includes SSH source.url entries).
README.md Add Docker section with setup + test instructions.
.github/workflows/docker.yml New Docker CI workflow running compose, migrations, and Codeception.
.github/workflows/build.yml Update actions/checkout version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread README.md Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Docker-based development/CI setup to target newer runtime versions (PHP 8.4 containers and newer DB images) and documents how to run the template via Docker.

Changes:

  • Bump frontend/backend Docker base images to yiisoftware/yii2-php:8.4-apache.
  • Update Docker Compose DB images (MySQL 8.0; refresh commented Postgres version) and add a dedicated Docker GitHub Actions workflow.
  • Expand README with Docker installation and test-running instructions; update composer.lock due to dependency refresh.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/Dockerfile Moves Apache/PHP container base image to PHP 8.4.
backend/Dockerfile Moves Apache/PHP container base image to PHP 8.4.
docker-compose.yml Removes compose schema version header; updates MySQL image to 8.0 (and updates commented Postgres version).
composer.lock Updates locked dependency metadata/refs as part of the upgrade.
README.md Adds Docker-focused setup and testing documentation plus a CI badge.
.github/workflows/docker.yml New Docker-based CI workflow that builds containers, initializes the app, prepares DB, and runs tests.
.github/workflows/build.yml Updates checkout action version used by the main build workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/docker.yml
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s Docker-based development/CI environment to target newer runtime versions, and documents how to run the app/tests via Docker.

Changes:

  • Bump frontend/backend Docker images from PHP 8.1 to PHP 8.4.
  • Update docker-compose.yml database image to MySQL 8.0 and add a GitHub Actions workflow to run the Docker-based test flow.
  • Expand README with Docker install/test instructions and adjust .gitignore (including ignoring composer.lock).

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
frontend/Dockerfile Switch base image to yiisoftware/yii2-php:8.4-apache.
backend/Dockerfile Switch base image to yiisoftware/yii2-php:8.4-apache.
docker-compose.yml Remove compose version: and bump MySQL to 8.0 (and update commented pgsql version).
composer.lock Removed from the repo.
README.md Add Docker section and instructions for Docker-based install and running tests.
.gitignore Ignore composer.lock and common Node artifacts.
.github/workflows/docker.yml Add Docker workflow that builds containers, configures DB, runs migrations and Codeception.
.github/workflows/build.yml Update checkout action version used by CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/docker.yml Outdated
Comment thread docker-compose.yml
Comment thread README.md Outdated
@terabytesoftw terabytesoftw changed the title Docker php 8.4 Upgrade Docker to PHP 8.4 and MySQL 8.0, remove composer.lock. Mar 17, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s Docker-based development/CI environment to newer runtime dependencies and refreshes documentation to match, while also removing the Composer lock file from version control.

Changes:

  • Upgrade Docker PHP base images to yiisoftware/yii2-php:8.4-apache for frontend/backend.
  • Upgrade docker-compose.yml MySQL image to mysql:8.0 (and update commented Postgres version).
  • Remove composer.lock, add a dedicated Docker GitHub Actions workflow, and expand README Docker setup instructions.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
frontend/Dockerfile Bumps the frontend Apache/PHP base image to PHP 8.4.
backend/Dockerfile Bumps the backend Apache/PHP base image to PHP 8.4.
docker-compose.yml Upgrades the MySQL service image to 8.0 and removes the obsolete compose version field.
composer.lock Removes the dependency lock file from the repository.
README.md Adds Docker CI badge + detailed Docker install/testing instructions and requirements note.
.gitignore Starts ignoring composer.lock and adds Node-related ignores.
.github/workflows/docker.yml Adds a Docker-based CI workflow that builds containers, configures DB settings, migrates, and runs Codeception.
.github/workflows/build.yml Updates actions/checkout version used by the build workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@terabytesoftw terabytesoftw merged commit e193746 into yiisoft:master Mar 17, 2026
15 checks passed
@terabytesoftw terabytesoftw deleted the docker-php-8.4 branch March 17, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review. type:bug Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants