Skip to content

Conversation

@rishi-jat
Copy link

@rishi-jat rishi-jat commented Feb 11, 2026

/claim #8264

Changes

  • Added a new reusable WordPress + OpenLiteSpeed one-click service template intended as a production-ready reference.
  • The template automatically provisions WordPress core files and generates wp-config.php using inline, idempotent bootstrap logic inside the container.
  • Uses persistent volumes for both WordPress files and MariaDB data to ensure data durability across restarts and redeployments.
  • Designed to work with Coolify’s built-in proxy and follow existing service template conventions.
  • Scope is intentionally limited to a single service template file, without introducing additional services or behavior.

Issues

Category

  • Bug fix
  • New feature
  • Adding new one click service
  • Fixing or updating existing one click service

Screenshots or Video

Note:
I am currently blocked from running a local Coolify instance due to issues installing and running the ServerSideUp Spin tool on macOS (Apple Silicon). This prevents me from recording a local demo at the moment.

The service template has been implemented following existing Coolify one-click service patterns and project guidelines.

A demo video will be uploaded as soon as I am able to complete a deployment on a working Coolify environment.

AI Usage

  • AI is used in the process of creating this PR
  • AI is NOT used in the process of creating this PR

AI was used as an assistant. All changes were reviewed, fully understood, and manually validated before submission.

Steps to Test

  1. Checkout the next branch and pull this PR.
  2. Open Coolify and add a new service.
  3. Select WordPress + OpenLiteSpeed from the one-click services list.
  4. Deploy the service with default settings.
  5. Wait until both containers are healthy.
  6. Open the generated service URL.
  7. Verify:
    • WordPress installer loads correctly on first visit
    • Core files and configuration are already present
    • Restarting the service does not reinitialize WordPress files
    • Redeploying the service preserves existing data

Contributor Agreement

Important

  • I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
  • I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them

Copilot AI review requested due to automatic review settings February 11, 2026 00:21
@algora-pbc algora-pbc bot added the 🙋 Bounty claim Issues or PRs that have a Bounty ready to be claimed. label Feb 11, 2026
Copy link

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

Adds a new Coolify one-click WordPress + OpenLiteSpeed + MariaDB compose template intended for production-style deployments.

Changes:

  • Introduces a new compose template that runs OpenLiteSpeed alongside MariaDB.
  • Adds bootstrap logic to download WordPress into a persistent volume and generate wp-config.php on first start.
  • Configures persistent volumes and basic HTTP healthchecks for both services.

Comment on lines +26 to +27
curl -sL https://wordpress.org/latest.tar.gz | tar -xz -C /tmp
cp -R /tmp/wordpress/. "$${DOCROOT}"
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

The container downloads and unpacks WordPress at runtime from https://wordpress.org/latest.tar.gz. This adds an external availability dependency to every fresh deployment and makes installs non-reproducible as “latest” changes over time. Consider using a prebuilt image that already contains WordPress (or pinning to a specific WordPress version and validating the download, e.g., checksum/signature) to improve reliability.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

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

Copilot is correct here. It might also has the side effect, that whenever you restart the service, all your changes are gone as they get overwritten by that download again.

Comment on lines +24 to +30
if [ ! -f "$${DOCROOT}/wp-config.php" ]; then
mkdir -p "$${DOCROOT}"
curl -sL https://wordpress.org/latest.tar.gz | tar -xz -C /tmp
cp -R /tmp/wordpress/. "$${DOCROOT}"
rm -rf /tmp/wordpress
wp config create --path="$${DOCROOT}" --dbname="$${WORDPRESS_DB_NAME}" --dbuser="$${WORDPRESS_DB_USER}" --dbpass="$${WORDPRESS_DB_PASSWORD}" --dbhost="$${WORDPRESS_DB_HOST}" --skip-check --allow-root
chown -R 1000:1000 "$${DOCROOT}"
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

The bootstrap logic only creates wp-config.php (via wp config create) but does not perform a WordPress core install. Unless the image has additional automation, this typically means the user will still see the WordPress web installer on first visit, which conflicts with the PR description (“No setup wizard is shown”). Consider adding an idempotent wp core install step (and exposing admin user/email/password inputs), or adjust the PR description/expectations accordingly.

Copilot uses AI. Check for mistakes.
@rishi-jat
Copy link
Author

@ShadowArcanisgt This time I have followed all the contribution guidelines please let me know if I miss anything ? Thanks!

@rishi-jat
Copy link
Author

/cc @enricoangelon

@ShadowArcanist
Copy link
Member

I am currently blocked from running a local Coolify instance due to issues installing and running the ServerSideUp Spin tool on macOS (Apple Silicon). This prevents me from recording a local demo at the moment.

The entire Coolify team using macOS with silicon chip for developing Coolify locally, if you are having any issue then please join our https://coollabs.io/discord and share your issue on the "one-click-service" channel.

Also you don't have to run Coolify locally to test templates like these, On your Coolify instance create a new resource and select the option "Docker compose empty" then paste the compose file content and deploy it.

Just a note: I can't promise any timeline for PR merges because only core developers decide if a PR should be merged or not, and they review PRs when they have sometime (please do not ping them)

Copy link
Member

@Cinzya Cinzya left a comment

Choose a reason for hiding this comment

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

It probably makes more sense to add OpenLiteSpeed as a unopinionated service without being coupled with WordPress, as some users might want to use it standalone. You can add instructions to the Coolify Docs on what people need to change to deploy it together with WordPress.
Also your template is not deploying successfully. Please test it, and mark needed env variables as required.

Comment on lines +26 to +27
curl -sL https://wordpress.org/latest.tar.gz | tar -xz -C /tmp
cp -R /tmp/wordpress/. "$${DOCROOT}"
Copy link
Member

Choose a reason for hiding this comment

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

Copilot is correct here. It might also has the side effect, that whenever you restart the service, all your changes are gone as they get overwritten by that download again.

@Cinzya Cinzya added ⚙️ Service Issues requesting or PRs adding/fixing service templates. 💤 Waiting for changes PRs awaiting changes from the author. 📑 Waiting for Docs PR labels Feb 11, 2026
@github-actions
Copy link
Contributor

Hi @rishi-jat! 👋

It appears to us that you are either adding a new service or making changes to an existing one.
We kindly ask you to also review and update the Coolify Documentation to include this new service or it's new configuration needs.
This will help ensure that our documentation remains accurate and up-to-date for all users.

Coolify Docs Repository: https://github.com/coollabsio/coolify-docs
How to Contribute a new Service to the Docs: https://coolify.io/docs/get-started/contribute/service#adding-a-new-service-template-to-the-coolify-documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🙋 Bounty claim Issues or PRs that have a Bounty ready to be claimed. ⚙️ Service Issues requesting or PRs adding/fixing service templates. 💤 Waiting for changes PRs awaiting changes from the author. 📑 Waiting for Docs PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants