-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 798 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (26 loc) · 798 Bytes
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
version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile
environment:
- ELASTICSEARCH_URL=elasticsearch_api
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=yourawesomepassword
- ELASTICSEARCH_PORT=9200
ports:
- "3000:3000"
volumes:
- .:/app
command: bash -c "bundle exec rails db:migrate && bundle exec rails db:seed && bundle exec rails runner 'Product.reindex' && bundle exec rails server -b 0.0.0.0"
elasticsearch_api:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=yourawesomepassword
- xpack.security.enabled=true