2022-03-31 16:33:49 +00:00
|
|
|
version: '3.3'
|
2020-04-02 13:41:06 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
container_name: "${APP_NAME}_db"
|
2020-07-23 17:30:24 +00:00
|
|
|
image: mariadb:${DC_MARIADB_VERSION}
|
2022-03-31 16:12:54 +00:00
|
|
|
restart: on-failure
|
2020-04-02 13:41:06 +00:00
|
|
|
environment:
|
2020-08-04 19:17:00 +00:00
|
|
|
MYSQL_DATABASE: ${WORDPRESS_DB_NAME}
|
|
|
|
MYSQL_USER: ${WORDPRESS_DB_USER}
|
|
|
|
MYSQL_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
2020-04-02 13:41:06 +00:00
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
2022-03-30 14:03:30 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "mysqladmin ping -P 3306 --user=${WORDPRESS_DB_USER} --password=${WORDPRESS_DB_PASSWORD} | grep 'mysqld is alive' || exit 1"]
|
|
|
|
interval: 2s
|
2022-03-30 14:09:46 +00:00
|
|
|
retries: 30
|
2020-04-02 13:41:06 +00:00
|
|
|
|
2020-07-23 17:30:24 +00:00
|
|
|
php:
|
|
|
|
container_name: "${APP_NAME}_php"
|
|
|
|
image: php:${DC_PHP_VERSION}
|
2022-03-30 14:03:30 +00:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2020-07-23 17:30:24 +00:00
|
|
|
|
2020-04-02 13:41:06 +00:00
|
|
|
wordpress-www:
|
|
|
|
container_name: "${APP_NAME}_wordpress-www"
|
2022-03-31 16:12:54 +00:00
|
|
|
restart: on-failure
|
2020-04-02 13:41:06 +00:00
|
|
|
depends_on:
|
2022-03-30 14:03:30 +00:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2020-07-23 17:30:24 +00:00
|
|
|
image: wordpress:${WORDPRESS_VERSION}
|
2020-04-02 13:41:06 +00:00
|
|
|
ports:
|
|
|
|
- ${WORDPRESS_PORT}:80
|
|
|
|
environment:
|
2020-04-07 22:33:30 +00:00
|
|
|
WORDPRESS_DB_HOST: ${WORDPRESS_DB_HOST}
|
|
|
|
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME}
|
|
|
|
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER}
|
|
|
|
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
|
|
|
WORDPRESS_TABLE_PREFIX: "${WORDPRESS_TABLE_PREFIX}"
|
2020-04-02 13:41:06 +00:00
|
|
|
WORDPRESS_DEBUG: 1
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
2021-12-08 22:56:42 +00:00
|
|
|
- ./upload.ini:/usr/local/etc/php/conf.d/uploads.ini
|
2021-11-23 12:56:24 +00:00
|
|
|
- "../../../${WC_E2E_FOLDER}:${WC_E2E_FOLDER_MAPPING}"
|
2020-04-02 13:41:06 +00:00
|
|
|
|
|
|
|
wordpress-cli:
|
|
|
|
container_name: "${APP_NAME}_wordpress-cli"
|
2022-03-31 16:12:54 +00:00
|
|
|
restart: on-failure
|
2020-04-02 13:41:06 +00:00
|
|
|
depends_on:
|
2022-03-30 14:03:30 +00:00
|
|
|
- wordpress-www
|
2020-04-02 13:41:06 +00:00
|
|
|
build:
|
|
|
|
context: ./docker/wp-cli
|
|
|
|
environment:
|
2020-04-07 22:33:30 +00:00
|
|
|
WORDPRESS_PORT: ${WORDPRESS_PORT}
|
2020-04-02 13:41:06 +00:00
|
|
|
WORDPRESS_HOST: wordpress-www:80
|
2020-04-07 22:33:30 +00:00
|
|
|
WORDPRESS_TITLE: ${WORDPRESS_TITLE}
|
|
|
|
WORDPRESS_LOGIN: ${WORDPRESS_LOGIN}
|
|
|
|
WORDPRESS_PASSWORD: ${WORDPRESS_PASSWORD}
|
|
|
|
WORDPRESS_EMAIL: "${WORDPRESS_EMAIL}"
|
2021-03-11 16:19:34 +00:00
|
|
|
WORDPRESS_DB_HOST: ${WORDPRESS_DB_HOST}
|
|
|
|
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME}
|
|
|
|
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER}
|
|
|
|
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
2020-04-02 13:41:06 +00:00
|
|
|
DOMAIN_NAME:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
2021-11-23 12:56:24 +00:00
|
|
|
- "../../../${WC_E2E_FOLDER}:${WC_E2E_FOLDER_MAPPING}"
|
2020-04-02 13:41:06 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
wordpress:
|