-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
executable file
·48 lines (43 loc) · 1.04 KB
/
local.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
version: '3'
volumes:
local_postgres_data: {}
local_solr_data: {}
services:
db:
build:
context: .
dockerfile: compose/postgres/Dockerfile
image: dprr_local_postgres
volumes:
- local_postgres_data:/var/lib/postgresql/data
env_file:
- ./.envs/.local/.postgres
ports:
- "5432:5432"
restart: unless-stopped
# Core config at /opt/solr/server/solr/mycores/dprr/conf
solr:
image: library/solr:6.6.5
ports:
- "8983:8983"
volumes:
- local_solr_data:/var/solr
command:
- solr-precreate
- dprr
# Remember to copy the schema! (Not automatic at present)
# To build:
# docker-compose -f local.yml run --rm web python manage.py build_solr_schema --configure-directory=/app/solr_config/config
# then docker cp results to solr folder above
web:
build:
context: .
dockerfile: compose/django/Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
- solr