-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.15 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
54
55
version: '3.1'
volumes:
postgres-data:
gems:
solr-data:
networks:
backend:
services:
postgres:
image: postgres:9.5-alpine
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
networks: [ "backend" ]
environment:
POSTGRES_PASSWORD: p0stgr3s
web: &app
build:
context: .
dockerfile: Dockerfile
image: billyabm/rails-solr-elasticsearch
volumes:
- .:/usr/src
- gems:/usr/local/bundle
networks: [ "backend" ]
stdin_open: true
tty: true
depends_on:
- postgres
- solr
command: rails server -p 3000 -b 0.0.0.0
ports: [ "3000:3000" ]
environment:
DATABASE_URL: postgres://postgres:p0stgr3s@postgres:5432/rails_solr_elasticsearch
RAILS_ENV: development
RACK_ENV: development
RAILS_LOG_TO_STDOUT: "true"
SOLR_CORE_NAME: ${SOLR_CORE_NAME:-rails-app-core}
solr:
image: solr
ports:
- "8983:8983"
networks: [ "backend" ]
volumes:
- solr-data:/opt/solr/server/solr/mycores
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- ${SOLR_CORE_NAME:-rails-app-core}