Template: template-wordpress — docker-compose.yml and README
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
* text=auto eol=lf
|
||||||
@@ -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.
|
||||||
@@ -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:
|
||||||
Reference in New Issue
Block a user