Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions wordpress/unfinishedinstallation/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# WordPress with exposed installation page

This directory contains the deployment configs for a WordPress application where
the installation page is exposed. The service listens on port `80`.
the installation page is exposed. The internal service listens on port `80` and is exposed on `8081` by docker compose.

This config deploys the following services:

Expand All @@ -13,4 +13,10 @@ and the following storage:
- `mysql-pv-claim`: File system required by MySql.
- `pre-setup-wp-pv-claim`: File system required by WordPress.

Replace `${db_password}` with a password of your choice in wordpress.yaml
Replace `${db_password}` with a password of your choice in wordpress.yaml


You can also use the docker-compose setup with
```
docker compose up
```
33 changes: 33 additions & 0 deletions wordpress/unfinishedinstallation/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: "3.9"

services:
wordpress:
image: wordpress
platform: linux/amd64
container_name: wordpress
ports:
- "8081:80"
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: tsunami-notsecret-donotuse
WORDPRESS_DB_NAME: wordpress
depends_on:
mysql:
condition: service_healthy
restart: unless-stopped

mysql:
image: mysql:5.7
platform: linux/amd64
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: tsunami-notsecret-donotuse
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: tsunami-notsecret-donotuse
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
retries: 10