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

27 lines
798 B
YAML
Raw Normal View History

2023-10-19 09:28:25 +00:00
# documentation: https://wordpress.org/documentation/
2023-10-19 08:51:03 +00:00
# slogan: "WordPress is open source software you can use to create a beautiful website, blog, or app."
services:
wordpress:
image: wordpress:latest
volumes:
- wordpress-files:/var/www/html
environment:
SERVICE_FQDN:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: $SERVICE_USER_WORDPRESS
WORDPRESS_DB_PASSWORD: $SERVICE_PASSWORD_WORDPRESS
WORDPRESS_DB_NAME: wordpress
depends_on:
- mariadb
mariadb:
image: mariadb:11
volumes:
- mariadb-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: $SERVICE_PASSWORD_ROOT
MYSQL_DATABASE: wordpress
MYSQL_USER: $SERVICE_USER_WORDPRESS
MYSQL_PASSWORD: $SERVICE_PASSWORD_WORDPRESS