-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
145 lines (142 loc) · 4.53 KB
/
docker-compose.yml
File metadata and controls
145 lines (142 loc) · 4.53 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: '2'
services:
php53:
cpu_shares: 256
#doesn't build anymore
# build: ../docker/php5/
image: vipconsult/php:5.3
volumes:
- /home/vipconsult/http:/home/http
extends:
file: common.yml
service: common
environment:
- PHP53_cookie_lifetime=315360000
- PHP53_memory_limit=112M
- PHP53_post_max_size=300M
- PHP53_max_input_vars=1000
- PHP53_display_errors=off
- PHP53_error_reporting=E_ALL \& ~E_DEPRECATED
- PHP53_upload_max_filesize=500M
- PHP53_max_execution_time=1800
- PHP53_default_socket_timeout=1800
- PHP53_date_timezone=Europe\/London
## pool settings http://php.net/manual/en/install.fpm.configuration.php
- PHP53_user=nobody
- PHP53_group=nogroup
- PHP53_port=9000
- PHP53_pm=dynamic
- PHP53_max_children=8
- PHP53_start_servers=4
- PHP53_min_spare_servers=2
- PHP53_max_spare_servers=4
#used only when pm is set ondemand
- PHP53_process_idle_timeout=60
php5:
cpu_shares: 256
build: ../dockerfiles/php5/
volumes:
- /home/vipconsult/http:/home/http
extends:
file: common.yml
service: common
environment:
- PHP5_cookie_lifetime=315360000
- PHP5_memory_limit=128M
- PHP5_post_max_size=500M
- PHP5_max_input_vars=5000
- PHP5_display_errors=off
- PHP5_error_reporting=E_ALL
- PHP5_upload_max_filesize=500M
- PHP5_max_execution_time=1800
- PHP5_default_socket_timeout=1800
- PHP5_date_timezone=Europe\/London
## pool settings http://php.net/manual/en/install.fpm.configuration.php
- PHP5_user=nobody
- PHP5_group=nogroup
- PHP5_port=9000
- PHP5_pm=dynamic
- PHP5_max_children=8
- PHP5_start_servers=4
- PHP5_min_spare_servers=2
- PHP5_max_spare_servers=4
#used only when pm is set ondemand
- PHP5_process_idle_timeout=60
nginx:
cpu_shares: 256
build: ../dockerfiles/nginx/
volumes:
- /home/vipconsult/http:/home/http
extends:
file: common.yml
service: common
# entrypoint: bash
# command: -c "ping google.com"
memcached:
cpu_shares: 100
image: memcached:1.4.24
extends:
file: common.yml
service: common
smtp:
cpu_shares: 100
build: ../dockerfiles/smtp/
volumes:
- /home/vipconsult/exim:/var/spool/exim4
extends:
file: common.yml
service: common
environment:
- SMTP_INTERVAL=1m
- SMTP_PROCESSING=queue_only_load_latch
- SMTP_remote_max_parallel=2
- SMTP_queue_run_max=3
- SMTP_timeout_frozen_after=3h
mysql:
cpu_shares: 512
image: mysql:5.6
ports:
- 127.0.0.1:3306:3306
volumes:
- /home/vipconsult/mysql:/var/lib/mysql
extends:
file: common.yml
service: common
psql:
cpu_shares: 512
build: ../dockerfiles/postgres/
ports:
- 127.0.0.1:5432:5432
volumes:
- /home/vipconsult/postgresql:/var/lib/postgresql/data
extends:
file: common.yml
service: common
cron:
cpu_shares: 100
build: ../dockerfiles/cron/
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
extends:
file: common.yml
service: common
environment:
- DOCKER_API_VERSION=1.23
- MAILTO=support@vip-consult.co.uk
# - CRONTASK_1=0 1 * * * root docker exec compose_php5_1 php /home/http/vip-consult.co.uk/seo/public/cron.php
#split the smtp log
- CRONTASK_2=0 * * * * root docker exec compose_smtp_1 bash -c "exicyclog && chmod -R 777 /var/log/exim4/"
- CRONTASK_3=0 5 * * * root docker exec compose_php5_1 php /home/http/vip-consult.co.uk/portal/public/index.php cron index
fs:
cpu_shares: 800
extends:
file: common.yml
service: common
# psql_fs:
# cpu_shares: 256
# build: ../docker/postgres/
# volumes:
# - /home/vipconsult/postgresql:/var/lib/postgresql/data
# extends:
# file: common.yml
# service: common