forked from jasminmistry/wphhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.38 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
version: "3.8"
services:
php:
build:
context: .
dockerfile: docker-php/Dockerfile
volumes:
- ./:/var/www/app
#- ./docker-php/config/php.ini:/usr/local/etc/php/php.ini
expose:
- '9000'
links:
- "mysql-php:mysql"
hhvm:
build:
context: .
dockerfile: docker-hhvm/Dockerfile
volumes:
- ./:/var/www/app
expose:
- '9000'
links:
- "mysql-hhvm:mysql"
nginx-php:
build: ./nginx
volumes:
- ./:/var/www/app
- ./nginx/config/php/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8081:80"
links:
- php
nginx-hhvm:
build: ./nginx
volumes:
- ./:/var/www/app
- ./nginx/config/hhvm/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8082:80"
links:
- hhvm
mysql-php:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: wordpress
volumes:
- ~/data-php:/var/lib/mysql
mysql-hhvm:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: wordpress
volumes:
- ~/data-hhvm:/var/lib/mysql