forked from babenkoivan/scout-elasticsearch-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (35 loc) · 1.18 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
version: '3.7'
services:
php:
image: babenkoivan/scout-elasticsearch-driver-php-cli:php7.3-laravel6
command: >
sh -c 'composer config --no-interaction repositories.driver "{\"type\":\"path\",\"url\":\"../driver\",\"options\":{\"symlink\":true}}" &&
composer require --no-interaction --prefer-dist babenkoivan/scout-elasticsearch-driver:@dev &&
check-connection mysql 3306 &&
check-connection elastic 9200 &&
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider" &&
php artisan vendor:publish --provider="ScoutElastic\ScoutElasticServiceProvider" &&
php artisan migrate --no-interaction --seed &&
php -a'
volumes:
- .:/driver
depends_on:
- mysql
- elastic
stdin_open: true
environment:
DB_HOST: mysql
DB_DATABASE: app
DB_USERNAME: root
DB_PASSWORD: root
SCOUT_DRIVER: elastic
SCOUT_ELASTIC_HOST: elastic:9200
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: app
elastic:
image: elasticsearch:7.1.1
environment:
discovery.type: single-node