-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.development.yml
54 lines (52 loc) · 1.49 KB
/
docker-compose.development.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
# Extends the main docker-compose file depending on the active environment.
x-environment:
&php-environment
# XDEBUG_ENABLE: "true"
PHP_MAX_EXECUTION_TIME: 900
PHP_MAX_INPUT_VARS: 2000
PHP_MAX_FILE_UPLOADS: 20
PHP_MEMORY_LIMIT: 256M
PHP_DISPLAY_ERRORS: 'On'
PHP_DISPLAY_STARTUP_ERRORS: 'On'
SSMTP_MAILHUB: maildev
# This mostly applies low-memory settings.
version: '2.3'
services:
varnish:
environment:
CACHE_SIZE: 16M
redis:
environment:
MAXMEMORY: 32m
solr:
environment:
SOLR_JAVA_MEM: -Xms64M -Xmx128M
mariadb:
environment:
MARIADB_INNODB_LOG_FILE_SIZE: 32M
MARIADB_INNODB_BUFFER_POOL_SIZE: 50M
MARIADB_INNODB_BUFFER_POOL_INSTANCES: 1
MARIADB_LOG_SLOW: 1
# MARIADB_LOG_QUERIES: 1
cli:
environment:
<< : *php-environment
# Allow mounting the sync dir to some common-dir when running multiple instances of the project.
volumes:
- ${COMPOSE_SYNC_DIR:-./dumps/sync}:/app/dumps/sync
php:
environment:
<< : *php-environment
maildev:
image: djfarrelly/maildev:${MAILDEV_VERSION:-1.0.0}
labels:
traefik.enable: true
traefik.frontend.rule: "Host:maildev--${COMPOSE_HOSTNAME}"
traefik.frontend.auth.basic.users: ${COMPOSE_ADMIN_AUTH:-admin:missing-some-pass-here.}
traefik.frontend.priority: 1000
traefik.port: 80
lupus-ci.job_name: ${LUPUS_CI_JOB_NAME:-}
restart: ${COMPOSER_CONTAINER_RESTART:-always}
networks:
default: {}
traefik: {}