forked from fergbrain/wordpress-test-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (69 loc) · 2.15 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3'
# Based on https://github.com/nanoninja/docker-nginx-php-mysql
services:
web:
image: nginx:alpine
volumes:
- "./docker/default.conf:/etc/nginx/conf.d/default.conf"
- "./docker/etc/ssl:/etc/ssl"
- "./docker/:/var/www/"
- "./docker/default.template.conf:/etc/nginx/conf.d/default.template"
- "./:/root/wptest"
ports:
- "8000:80"
- "3000:443"
environment:
- NGINX_HOST=${NGINX_HOST}
command: /bin/sh -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
restart: always
depends_on:
- php
- mysqldb
php:
image: koconder/wordpress-test-dockerimages:${PHP_VERSION}
restart: always
env_file:
- .env
environment:
- WP_VERSION={$WP_VERSION}
- WP_PLUGINLIST=${WP_PLUGINLIST}
ports:
- "12001:12000"
command: bash -c "cd /root/wptest && bin/install-wp-tests.sh test root root mysqldb latest"
stdin_open: true
tty: true
volumes:
- "./docker/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./docker/:/var/www/"
- "./:/root/wptest"
composer:
image: "composer"
volumes:
- "./:/app"
command: install
myadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
ports:
- "8080:80"
environment:
- PMA_ARBITRARY=1
- PMA_HOST=${MYSQL_HOST}
restart: always
depends_on:
- mysqldb
mysqldb:
image: mysql:${MYSQL_VERSION}
container_name: ${MYSQL_HOST}
restart: always
env_file:
- .env
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- "8989:3306"
#volumes:
# - "./docker/etc/db/mysql:/var/lib/mysql"