forked from FriendsOfSymfony1/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
145 lines (127 loc) · 2.7 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
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/tests
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"'
} | tee -a /usr/local/lib/php.ini
exec tail -f /dev/null
php54: &services_php54
build:
context: .docker/php54
working_dir: /app/tests
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"'
} | tee -a /usr/local/etc/php/php.ini
exec tail -f /dev/null
depends_on:
- db
php55:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '5.5-cli'
php56:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '5.6-cli-jessie'
php70:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '7.0-cli-jessie'
php71:
<<: *services_php54
build:
context: .docker/php55_71
args:
PHP_TAG: '7.1-cli-jessie'
php72:
<<: *services_php54
build:
context: .docker/php72_73
args:
PHP_VERSION: '7.2'
php73:
<<: *services_php54
build:
context: .docker/php72_73
args:
PHP_VERSION: '7.3'
php74:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '7.4'
php80:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '8.0'
php81:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '8.1'
php82:
<<: *services_php54
build:
context: .docker/php74_82
args:
PHP_VERSION: '8.2'
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