Files
piratepoet/tests/docker/docker-compose.yml
Pavel Dohnal 7fb2d3b402 Use wp 5.5 for acceptance tests
[MAILPOET-3096]
2020-08-13 17:01:05 +02:00

86 lines
2.1 KiB
YAML

version: '3.2'
services:
codeception:
image: mailpoet/wordpress:7.2-cli_20181215.1
depends_on:
- mailhog
- wordpress
volumes:
- wp-core:/wp-core
- mailhog-data:/mailhog-data
- ../..:/project
- ../..:/wp-core/wp-content/plugins/mailpoet
- ./codeception/docker-entrypoint.sh:/docker-entrypoint.sh
entrypoint: /docker-entrypoint.sh
environment:
WP_ROOT: /wp-core
mailhog:
image: mailhog/mailhog:v1.0.0
ports:
- 1025:1025
- 8025:8025
user: root
environment:
MH_STORAGE: maildir
MH_MAILDIR_PATH: /mailhog-data
volumes:
- mailhog-data:/mailhog-data
wordpress:
image: mailpoet/wordpress:${WORDPRESS_IMAGE_VERSION:-wp-5.5_php7.4_20200813.1}
depends_on:
- chrome
- mailhog
- mysql
volumes:
- wp-core:/var/www/html
- ../..:/var/www/html/wp-content/plugins/mailpoet
tmpfs:
- /var/www/html/wp-content/uploads/mailpoet/cache
ports:
- 8080:80
environment:
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_TABLE_PREFIX: mp_
MAILPOET_TRACY_PRODUCTION_MODE: 1
MAILPOET_TRACY_LOG_DIR: /var/www/html/wp-content/plugins/mailpoet/tests/_output/exceptions
networks:
default:
aliases:
- test.local
mysql:
image: circleci/mysql:${MYSQL_IMAGE_VERSION:-5.7.27-ram}
# Command used for MySQL 8+ because it needs default-authentication-plugin
# parameter and there needs to be some fallback for other MySQL versions.
# --verbose can be changed to any other useless parameter
command: ${MYSQL_COMMAND:---verbose}
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
volumes:
- /dev/shm:/dev/shm
chrome:
environment:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
volumes:
- /dev/shm:/dev/shm
image: selenium/standalone-chrome-debug:3.141.59-20200525
ports:
- 4444
- 5900:5900
volumes:
wp-core:
mailhog-data:
networks:
default: