Skip to content

feat(pimcore): complete docker-compose project with proper 3-container architecture#2100

Open
Copilot wants to merge 2 commits intofeat/moodle-update-20260319from
copilot/create-docker-compose-yml-project
Open

feat(pimcore): complete docker-compose project with proper 3-container architecture#2100
Copilot wants to merge 2 commits intofeat/moodle-update-20260319from
copilot/create-docker-compose-yml-project

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

The existing apps/pimcore/ was non-functional — broken port bindings, references to non-existent services, non-standard variable names, and noted as "Can not used, need improve".

Architecture

3 long-running containers + 1 init container:

Service Image Role
nginx nginx:stable-alpine HTTP server, proxies PHP-FPM via php:9000
php pimcore/pimcore:php8.2-supervisord-latest PHP-FPM + messenger/maintenance workers
mariadb mariadb:10.11 Database with healthcheck
init pimcore/pimcore:php8.2-latest One-time: composer create-project + pimcore-install, exits on success

Key changes

  • .env — standardized to W9_ID, W9_HTTP_PORT_SET, W9_LOGIN_USER/PASSWORD, W9_DB_EXPOSE, W9_URL; added PIMCORE_DB_* vars as single source of truth for DB credentials
  • docker-compose.yml — full rewrite; php service name aligns with nginx.conf upstream (server php:9000); DATABASE_URL derived from PIMCORE_DB_*; mariadb healthcheck gates both init and php startup
  • src/init.sh — new; handles idempotent first-run install via .installed lock file
  • src/README.md — new; documents all src/ config files
  • variables.json — fixed trailing space in trademark
  • Notes.md — replaced placeholder text with architecture overview and first-startup timing expectations (~5–15 min for composer download)

Notes

The pimcore/pimcore image is a PHP-FPM runtime only — it does not bundle application code. The init container bootstraps the skeleton project on first docker compose up. Subsequent restarts skip installation via the .installed lock file.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • docs.pimcore.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Apr 2, 2026 that may be closed by this pull request
19 tasks
Copilot AI changed the title [WIP] Create docker-compose.yml for Pimcore feat(pimcore): complete docker-compose project with proper 3-container architecture Apr 2, 2026
Copilot AI requested a review from zhaojing1987 April 2, 2026 02:30
@zhaojing1987 zhaojing1987 marked this pull request as ready for review April 2, 2026 02:33
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.

Create docker-compose.yml project for [Pimcore]

2 participants