-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
docker-compose.yml
38 lines (36 loc) · 1.15 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
version: '3'
services:
php74:
build:
context: ./docker/php74
working_dir: /var/www/html
environment:
CRUNZ_CONTAINER_DEBUG: 1
command: >
sh -c "
chown -R www-data:www-data /var/www/.composer \
&& echo 'Logs from /var/log/php/error.log:' \
&& touch /var/log/php/error.log \
&& tail -f /var/log/php/error.log
"
volumes:
- .:/var/www/html
- ./docker/php74/php.ini:/usr/local/etc/php/php.ini:ro
stop_grace_period: 1s
php80:
build:
context: ./docker/php80
working_dir: /var/www/html
environment:
CRUNZ_CONTAINER_DEBUG: 1
command: >
sh -c "
chown -R www-data:www-data /var/www/.composer \
&& echo 'Logs from /var/log/php/error.log:' \
&& touch /var/log/php/error.log \
&& tail -f /var/log/php/error.log
"
volumes:
- .:/var/www/html
- ./docker/php80/php.ini:/usr/local/etc/php/php.ini:ro
stop_grace_period: 1s