-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.04 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
version: '2'
services:
wordpress:
build:
context: config
dockerfile: Dockerfile-wordpress-${WORDPRESS_VERSION}
ports:
- 80${WORDPRESS_VERSION}:80
volumes:
- .:/var/www/html/wp-content/plugins/tiny-compress-images
links:
- mysql
- phantomjs
- webservice
environment:
WORDPRESS_DB_NAME: wordpress_${WORDPRESS_VERSION}
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: root
WORDPRESS_HOST: http://localhost
mysql:
platform: linux/x86_64
image: mysql:5.7
ports:
- 3306:3306
volumes:
- ./config/mysql:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress_${WORDPRESS_VERSION}
phantomjs:
ports:
- 8910:8910
volumes:
- ./test/fixtures:/test/fixtures
build:
context: config
dockerfile: Dockerfile-phantomjs
webservice:
ports:
- 80:80
volumes:
- ./test/mock-tinypng-webservice:/var/www/html
build:
context: config
dockerfile: Dockerfile-mock-webservice