mirror of
https://github.com/califio/publications.git
synced 2026-10-06 10:07:16 +00:00
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
name: wp2shell-apache81
|
|
|
|
services:
|
|
db:
|
|
image: mariadb:11
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: root
|
|
MARIADB_DATABASE: wordpress
|
|
MARIADB_USER: wordpress
|
|
MARIADB_PASSWORD: wordpress
|
|
volumes:
|
|
- db_data:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 30
|
|
|
|
wordpress:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
ports:
|
|
- "8083:8083"
|
|
environment:
|
|
WORDPRESS_DB_HOST: db:3306
|
|
WORDPRESS_DB_USER: wordpress
|
|
WORDPRESS_DB_PASSWORD: wordpress
|
|
WORDPRESS_DB_NAME: wordpress
|
|
WORDPRESS_DEBUG: "1"
|
|
WORDPRESS_CONFIG_EXTRA: |
|
|
define( 'SAVEQUERIES', true );
|
|
define( 'AUTOMATIC_UPDATER_DISABLED', true );
|
|
define( 'WP_AUTO_UPDATE_CORE', false );
|
|
volumes:
|
|
- wp_data:/var/www/html
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8083/__apache-health.php >/dev/null || exit 1"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 30
|
|
|
|
wpcli:
|
|
image: wordpress:cli-php8.3
|
|
depends_on:
|
|
wordpress:
|
|
condition: service_healthy
|
|
user: "33:33"
|
|
environment:
|
|
WORDPRESS_DB_HOST: db:3306
|
|
WORDPRESS_DB_USER: wordpress
|
|
WORDPRESS_DB_PASSWORD: wordpress
|
|
WORDPRESS_DB_NAME: wordpress
|
|
volumes:
|
|
- wp_data:/var/www/html
|
|
entrypoint: ["tail", "-f", "/dev/null"]
|
|
|
|
volumes:
|
|
db_data:
|
|
wp_data:
|