From 4bf2fb2c380c1b64a3b5da36d64b1d4f655c6076 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 02:22:22 +0100 Subject: [PATCH] =?UTF-8?q?Template:=20template-wordpress=20=E2=80=94=20do?= =?UTF-8?q?cker-compose.yml=20and=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 1 + README.md | 24 ++++++++++++++++++++++++ docker-compose.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/README.md b/README.md new file mode 100644 index 0000000..2f00a40 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# WordPress on Jambotron + +A website or blog: WordPress with a MariaDB database. + +A ready-made template for [Jambotron](https://jambotron.com): one `docker-compose.yml` with the official image, nothing to build. + +## Deploy in one click + +1. Sign in to [jambotron.com](https://jambotron.com). +2. Press **Deploy** on the **WordPress** card (home page or an empty projects page). +3. Jambotron uploads this template, adds an HTTPS subdomain to the `wordpress` service (port 80) and starts the deploy. +4. Open the address and finish the WordPress installer (site title, admin user). **Change the database passwords** in `docker-compose.yml` before the first deploy if the site is meant to stay. + +## Deploy it yourself + +Download this repository as a ZIP, create a project on Jambotron, upload the ZIP, pick `docker-compose.yml`, deploy and add a domain to the `wordpress` service, port 80. Or point a project at this repository (deploy from Git). + +## Data + +Named volumes survive redeploys: `db_data` — the database; `wp_data` — themes, plugins and uploads. + +## Limits + +Fits the free plan: 1 GB RAM per project, up to 5 services. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e078aaf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,44 @@ +# WordPress + MariaDB — сайт или блог. +# На Jambotron: деплой → домен на сервис wordpress, порт 80 → мастер установки WordPress. +# Пароли базы ниже — пример: поменяйте их до первого деплоя, если сайт останется надолго. +services: + wordpress-db: + image: mariadb:11 + restart: unless-stopped + environment: + MARIADB_DATABASE: wordpress + MARIADB_USER: wordpress + MARIADB_PASSWORD: change_me_wp_pass + MARIADB_ROOT_PASSWORD: change_me_root_pass + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + interval: 5s + timeout: 5s + retries: 10 + volumes: + - db_data:/var/lib/mysql + mem_limit: 384m + + wordpress: + image: wordpress:latest + restart: unless-stopped + # Ждём, пока база начнёт принимать подключения + depends_on: + wordpress-db: + condition: service_healthy + expose: + - "80" + environment: + WORDPRESS_DB_HOST: wordpress-db + WORDPRESS_DB_NAME: wordpress + WORDPRESS_DB_USER: wordpress + WORDPRESS_DB_PASSWORD: change_me_wp_pass + # HTTPS обрывается на прокси Jambotron; образ WordPress сам читает X-Forwarded-Proto + volumes: + # Темы, плагины и загрузки + - wp_data:/var/www/html + mem_limit: 512m + +volumes: + db_data: + wp_data: