mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
39 lines
983 B
YAML
39 lines
983 B
YAML
services:
|
|
wordpress:
|
|
image: wordpress:latest
|
|
volumes:
|
|
- wp_app:/var/www/html
|
|
- ../files/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
|
|
environment:
|
|
WORDPRESS_DB_HOST: wp_db
|
|
WORDPRESS_DB_NAME: $DB_NAME
|
|
WORDPRESS_DB_USER: root
|
|
WORDPRESS_DB_PASSWORD: $DB_PASSWORD
|
|
WORDPRESS_DEBUG: ${WORDPRESS_DEBUG:-0}
|
|
WORDPRESS_CONFIG_EXTRA: |
|
|
define('WP_MEMORY_LIMIT', '256M');
|
|
define('DISALLOW_FILE_EDIT', true);
|
|
depends_on:
|
|
wp_db:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
wp_db:
|
|
image: mysql:8.4
|
|
restart: unless-stopped
|
|
volumes:
|
|
- wp_data:/var/lib/mysql
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: $DB_PASSWORD
|
|
MYSQL_DATABASE: $DB_NAME
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "exit | mysql -h localhost -P 3306 -u root -p$$MYSQL_ROOT_PASSWORD"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
volumes:
|
|
wp_app:
|
|
wp_data:
|