-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
71 lines (64 loc) · 1.83 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
71
version: '2'
services:
### Nginx Server Container ##################################
nginx:
build: ./.docker/nginx
volumes_from:
- volumes_source
volumes:
- ./data/logs/nginx/:/var/log/nginx
ports:
- "8080:80"
- "4430:443"
links:
- php-fpm
### PHP-FPM Container #######################################
php-fpm:
build:
context: ./.docker/php-fpm
dockerfile: Dockerfile-56
volumes_from:
- volumes_source
expose:
- "9000"
links:
- workspace
### MySQL Container #########################################
mysql:
build: ./.docker/mysql
volumes_from:
- volumes_data
ports:
- "33060:3306"
environment:
MYSQL_DATABASE: zf2-boilerplate
MYSQL_USER: root
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
### Redis Container #########################################
redis:
build: ./.docker/redis
volumes_from:
- volumes_data
ports:
- "6379:6379"
### Workspace Utilities Container ###########################
workspace:
build:
context: ./.docker/workspace
args:
- INSTALL_PRESTISSIMO=false
volumes_from:
- volumes_source
tty: true
### ZF2 Application Code Container ######################
volumes_source:
build: ./.docker/volumes/application
volumes:
- ./:/var/www/zf2-boilerplate
### Databases Data Container ################################
volumes_data:
build: ./.docker/volumes/data
volumes:
- ./.docker/volumes/mysql:/var/lib/mysql
- ./.docker/volumes/redis:/data