woocommerce/tests/e2e/env/docker-compose.yaml

60 lines
1.4 KiB
YAML

version: '3.7'
services:
db:
container_name: "${APP_NAME}_db"
image: mariadb:10.4
restart: on-failure
environment:
MYSQL_DATABASE: testdb
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- db:/var/lib/mysql
wordpress-www:
container_name: "${APP_NAME}_wordpress-www"
depends_on:
- db
build:
context: ./docker/wordpress
ports:
- ${WORDPRESS_PORT}:80
restart: on-failure
environment:
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}"
WORDPRESS_DEBUG: 1
volumes:
- wordpress:/var/www/html
wordpress-cli:
container_name: "${APP_NAME}_wordpress-cli"
depends_on:
- db
- wordpress-www
build:
context: ./docker/wp-cli
restart: on-failure
# user: xfs
environment:
WORDPRESS_PORT: ${WORDPRESS_PORT}
WORDPRESS_HOST: wordpress-www:80
WORDPRESS_TITLE: ${WORDPRESS_TITLE}
WORDPRESS_LOGIN: ${WORDPRESS_LOGIN}
WORDPRESS_PASSWORD: ${WORDPRESS_PASSWORD}
WORDPRESS_EMAIL: "${WORDPRESS_EMAIL}"
DOMAIN_NAME:
volumes:
- wordpress:/var/www/html
volumes:
db:
wordpress: