Skip to content

Commit

Permalink
Merge pull request #214 from hamzamogni/upgrade-docker-compose-services
Browse files Browse the repository at this point in the history
Upgrade versions of docker-compose services
  • Loading branch information
matchish authored Jun 24, 2022
2 parents 577cc6d + 1a24083 commit 6558df4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
XDEBUG_CONFIG: ${XDEBUG_CONFIG}
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG}
ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST}
ELASTICSEARCH_USER: ${ELASTICSEARCH_USER}
ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD}
DB_HOST: ${DB_HOST}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
Expand All @@ -37,14 +39,16 @@ services:
networks:
- default
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1
image: docker.elastic.co/elasticsearch/elasticsearch:8.1.3
user: "1000:1000"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
environment:
- ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD}
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=false
- bootstrap.memory_lock=true
- action.destructive_requires_name=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
Expand Down
2 changes: 1 addition & 1 deletion docker/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# See https://github.com/docker-library/php/blob/master/7.1/fpm/Dockerfile
FROM php:7.3-fpm as php
FROM php:8.1-fpm as php
ARG TIMEZONE

MAINTAINER Shliakhov Sergey <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/ScoutElasticSearchServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function test_config_with_cloud_id()
{
$this->app['config']->set('elasticsearch.cloud_id', 'Test:ZXUtY2VudHJhbC0xLmF3cy5jbG91ZC5lcy5pbyQ0ZGU0NmNlZDhkOGQ0NTk2OTZlNTQ0ZmU1ZjMyYjk5OSRlY2I0YTJlZmY0OTA0ZDliOTE5NzMzMmQwOWNjOTY5Ng==');
$this->app['config']->set('elasticsearch.api_key', '123456');
$this->app['config']->set('elasticsearch.user', null);
$provider = new ElasticSearchServiceProvider($this->app);
$this->assertEquals([Client::class], $provider->provides());
/** @var Client $client */
Expand Down

0 comments on commit 6558df4

Please sign in to comment.