lasthourcloud/templates/compose/wordpress-with-mariadb.yaml

29 lines
889 B
YAML
Raw Normal View History

2024-02-20 16:08:16 +00:00
# documentation: https://wordpress.org
2023-10-25 13:44:34 +00:00
# slogan: WordPress with MariaDB. 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, mariadb
2024-02-20 16:08:16 +00:00
# logo: svgs/wordpress.svg
2023-10-19 08:51:03 +00:00
services:
wordpress:
image: wordpress:latest
volumes:
- wordpress-files:/var/www/html
environment:
2024-03-13 08:27:42 +00:00
- SERVICE_FQDN
- WORDPRESS_DB_HOST=mariadb
- WORDPRESS_DB_USER=$SERVICE_USER_WORDPRESS
- WORDPRESS_DB_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
- WORDPRESS_DB_NAME=wordpress
2023-10-19 08:51:03 +00:00
depends_on:
- mariadb
mariadb:
image: mariadb:11
volumes:
- mariadb-data:/var/lib/mysql
environment:
2024-03-13 08:27:42 +00:00
- MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_ROOT
- MYSQL_DATABASE=wordpress
- MYSQL_USER=$SERVICE_USER_WORDPRESS
- MYSQL_PASSWORD=$SERVICE_PASSWORD_WORDPRESS