-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
88 lines (82 loc) · 1.53 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
application:
build: containers/core
container_name: core_app
volumes:
- ./application:/var/www/phalcon
tty: true
db:
restart: always
image: mysql:latest
container_name: mysql_db
expose:
- "3306"
ports:
- "3307:3306"
volumes:
- ./conf/mysql:/etc/mysql/conf.d
environment:
MYSQL_DATABASE: phalcondb
MYSQL_USER: phalcon
MYSQL_PASSWORD: secret
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
memcached:
image: memcached:1.4
container_name: memcached_db
ports:
- "11211:11211"
redis:
restart: always
image: redis:latest
container_name: redis_db
ports:
- "6379:6379"
volumes:
- ./data/redis:/data
queue:
restart: always
image: klay/beanstalkd
container_name: beanstalkd_queue
ports:
- "11300:11300"
volumes:
- ./data/beanstalk:/data
php:
image: klay/php-fpm
restart: always
container_name: php_5.6_fpm
expose:
- "9000"
- "10000"
ports:
- "9000:9000"
- "10000:10000"
volumes:
- ./conf/php-fpm:/etc/php-fpm.d
volumes_from:
- application
links:
- db
- queue
- redis
- memcached
nginx:
restart: always
image: klay/nginx
container_name: nginx_web
expose:
- "80"
- "443"
ports:
- "80:80"
- "443:443"
links:
- php
volumes:
- ./conf/nginx/certs:/etc/nginx/certs
- ./conf/nginx/conf.d:/etc/nginx/conf.d
- ./conf/nginx/vhost:/etc/nginx/sites-enabled
volumes_from:
- application
environment:
# production | development | staging | testing
APPLICATION_ENV: development