-
Notifications
You must be signed in to change notification settings - Fork 178
/
docker-compose.yml
92 lines (81 loc) · 1.85 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
version: '3.5'
volumes:
db_socket:
services:
composer:
image: composer
working_dir: /app
volumes:
- .:/app
entrypoint:
- sh
- -c
- |
exec tail -f /dev/null
php74: &services_php74
build:
context: .docker
args:
PHP_VERSION: '7.4'
MEMCACHE_VERSION: '4.0.5.2'
APCU_VERSION: '5.1.23'
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 = on'
echo 'apc.use_request_time = 0'
} | tee -a /usr/local/etc/php/php.ini
exec tail -f /dev/null
depends_on:
- db
- memcached
php81:
<<: *services_php74
build:
args:
PHP_VERSION: '8.1'
MEMCACHE_VERSION: '8.0'
APCU_VERSION: '5.1.23'
php82:
<<: *services_php74
build:
args:
PHP_VERSION: '8.2'
MEMCACHE_VERSION: '8.0'
APCU_VERSION: '5.1.23'
php83:
<<: *services_php74
build:
args:
PHP_VERSION: '8.3'
MEMCACHE_VERSION: '8.0'
APCU_VERSION: '5.1.23'
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