forked from os2loop/os2loop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (67 loc) · 1.43 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
version: "3"
networks:
app:
driver: bridge
internal: false
services:
mariadb:
image: itkdev/mariadb:latest
networks:
- app
ports:
- '3306'
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=db
- MYSQL_PASSWORD=db
- MYSQL_DATABASE=db
#- ENCRYPT=1 # Uncomment to enable database encryption.
labels:
com.symfony.server.service-prefix: 'DATABASE'
phpfpm:
image: itkdev/php7.4-fpm:latest
networks:
- app
environment:
- XDEBUG_MODE=${XDEBUG_MODE:-off}
- XDEBUG_SESSION=${XDEBUG_SESSION:-0}
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
- PHP_MAIL=1 # Uncomment to enable mailhog.
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
- COMPOSER_VERSION=2
depends_on:
- mariadb
- memcached
volumes:
- .:/app:delegated
- drush-cache:/root/.drush
nginx:
image: nginx:latest
networks:
- app
depends_on:
- phpfpm
ports:
- '80'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
memcached:
image: 'memcached:latest'
networks:
- app
ports:
- '11211'
environment:
- MEMCACHED_CACHE_SIZE=64
mailhog:
image: mailhog/mailhog
networks:
- app
ports:
- "1025"
- "8025"
# Drush cache volume to persist cache between runs.
volumes:
drush-cache: