-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (29 loc) · 1003 Bytes
/
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
# itk-version: 2.0.0
version: "3"
services:
phpfpm:
image: itkdev/php8.1-fpm
environment:
- XDEBUG_MODE=${XDEBUG_MODE:-off}
- XDEBUG_SESSION=${XDEBUG_SESSION:-0}
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
- PHP_IDE_CONFIG=serverName=localhost
- COMPOSER_VERSION=2
volumes:
- nfsApp:/app:delegated
tmpfs:
- /app/var/cache:size=1G
- /tmp:size=1G
volumes:
# Named volume requires that you have NFS shares enabled (performance boost on Macs).
# Use `itkdev-docker-compose nfs:enable` to enable NFS shares. If you don't want to use it remove it from here and
# change the volume mapping to use normal shares in the containers. See
# https://sean-handley.medium.com/how-to-set-up-docker-for-mac-with-native-nfs-145151458adc
nfsApp:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":$PWD"