-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
53 lines (49 loc) · 1.64 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
# A docker-compose to make it easier to run PHP integration tests locally with different PHP versions.
version: "2"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "xpack.security.enabled=true"
- "xpack.security.authc.api_key.enabled=true"
- "ELASTIC_PASSWORD=password"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
entsearch:
image: docker.elastic.co/enterprise-search/enterprise-search:7.13.0
depends_on:
- "elasticsearch"
environment:
- "ENT_SEARCH_DEFAULT_PASSWORD=password"
- "elasticsearch.username=elastic"
- "elasticsearch.password=password"
- "elasticsearch.host=http://elasticsearch:9200"
- "allow_es_settings_modification=true"
- "secret_management.encryption_keys=[4a2cd3f81d39bf28738c10db0ca782095ffac07279561809eecc722e0c20eb09]"
- "elasticsearch.startup_retry.interval=15"
ports:
- 3002:3002
# php_client - Helpful for running integration tests locally.
# docker-compose build --build-arg base_image=php:7.3-cli
# docker-compose run php_client bash
# # source .circleci/retrieve-credentials.sh
# # vendor/bin/phpunit -c phpunit.xml.dist --testsuite integration
php_client:
build:
context: .
args:
base_image: php:7.3-cli
image: php_client
depends_on:
- "elasticsearch"
- "entsearch"
environment:
- "AS_URL=http://entsearch:3002"
- "ES_URL=http://elasticsearch:9200"
- "AS_ENGINE_NAME=php-integration-test-7.3"