2024-02-20 16:08:16 +00:00
|
|
|
# documentation: https://wordpress.org
|
2024-04-16 10:42:12 +00:00
|
|
|
# slogan: Wordpress is open source software you can use to create a beautiful website, blog, or app.
|
2023-10-24 10:33:49 +00:00
|
|
|
# tags: cms, blog, content, management, mysql
|
2024-02-20 16:08:16 +00:00
|
|
|
# logo: svgs/wordpress.svg
|
2023-10-19 08:51:03 +00:00
|
|
|
|
|
|
|
services:
|
2024-04-16 10:42:12 +00:00
|
|
|
wordpress:
|
|
|
|
image: wordpress:latest
|
|
|
|
volumes:
|
|
|
|
- wordpress-files:/var/www/html
|
|
|
|
environment:
|
|
|
|
- SERVICE_FQDN_WORDPRESS
|
|
|
|
- WORDPRESS_DB_HOST=mysql
|
|
|
|
- WORDPRESS_DB_USER=$SERVICE_USER_WORDPRESS
|
|
|
|
- WORDPRESS_DB_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
|
|
|
|
- WORDPRESS_DB_NAME=wordpress
|
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
healthcheck:
|
2024-05-17 08:11:55 +00:00
|
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1"]
|
2024-04-16 10:42:12 +00:00
|
|
|
interval: 2s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
|
|
|
mysql:
|
|
|
|
image: mysql:5.7
|
|
|
|
volumes:
|
|
|
|
- mysql-data:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_ROOT
|
|
|
|
- MYSQL_DATABASE=wordpress
|
|
|
|
- MYSQL_USER=$SERVICE_USER_WORDPRESS
|
|
|
|
- MYSQL_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
|
|
|
|
healthcheck:
|
2024-05-17 08:11:55 +00:00
|
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1"]
|
2024-04-16 10:42:12 +00:00
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|