forked from FriendsOfSymfony1/symfony1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
185 lines (160 loc) · 3.66 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
version: '3.5'
volumes:
db_socket:
services:
composer:
image: composer
working_dir: /app
volumes:
- .:/app
entrypoint:
- sh
- -c
- |
exec tail -f /dev/null
php53:
build: .docker/php53
working_dir: /app
volumes:
- .:/app
- db_socket:/var/run/mysqld
entrypoint:
- sh
- -c
- |
{
echo 'pdo_mysql.default_socket = /var/run/mysqld/mysql.sock'
echo 'memory_limit = -1'
echo 'short_open_tag = off'
echo 'magic_quotes_gpc = off'
echo 'date.timezone = "UTC"'
echo 'apc.enable_cli = ${APC_ENABLE_CLI-off}'
echo 'apc.use_request_time = 0'
} | tee -a /usr/local/lib/php.ini
exec tail -f /dev/null
depends_on:
- db
php54: &services_php54
build:
context: .docker/php54
args:
MEMCACHE_VERSION: '3.0.8'
environment:
MEMCACHED_HOST: memcached
working_dir: /app
volumes:
- .:/app
- db_socket:/var/run/mysqld
entrypoint:
- sh
- -c
- |
{
echo 'pdo_mysql.default_socket = /var/run/mysqld/mysql.sock'
echo 'memory_limit = -1'
echo 'short_open_tag = off'
echo 'magic_quotes_gpc = off'
echo 'date.timezone = "UTC"'
echo 'apc.enable_cli = ${APC_ENABLE_CLI-off}'
echo 'apc.use_request_time = 0'
} | tee -a /usr/local/etc/php/php.ini
exec tail -f /dev/null
depends_on:
- db
- memcached
php55:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '5.5-cli'
MEMCACHE_VERSION: '3.0.8'
APCU_VERSION: '4.0.11'
php56:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '5.6-cli-jessie'
MEMCACHE_VERSION: '3.0.8'
APCU_VERSION: '4.0.11'
php70:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '7.0-cli-jessie'
MEMCACHE_VERSION: '4.0.5.2'
APCU_VERSION: ''
php71:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '7.1-cli-jessie'
MEMCACHE_VERSION: '4.0.5.2'
APCU_VERSION: ''
php72:
<<: *services_php54
build:
context: .docker/php72_73
args:
PHP_VERSION: '7.2'
MEMCACHE_VERSION: '4.0.5.2'
APCU_VERSION: ''
php73:
<<: *services_php54
build:
context: .docker/php72_73
args:
PHP_VERSION: '7.3'
MEMCACHE_VERSION: '4.0.5.2'
APCU_VERSION: ''
php74:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '7.4'
MEMCACHE_VERSION: '4.0.5.2'
APCU_VERSION: ''
php80:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '8.0'
MEMCACHE_VERSION: '8.0'
APCU_VERSION: ''
php81:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '8.1'
MEMCACHE_VERSION: '8.0'
APCU_VERSION: ''
php82:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '8.2'
MEMCACHE_VERSION: '8.0'
APCU_VERSION: ''
db:
image: mysql:5.5.62
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
volumes:
- db_socket:/tmp
entrypoint:
- bash
- -c
- |
{
echo "CREATE DATABASE IF NOT EXISTS test;"
} | tee /docker-entrypoint-initdb.d/init.sql
exec /usr/local/bin/docker-entrypoint.sh mysqld
memcached:
image: memcached:1.6.13-alpine3.15