-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (41 loc) · 974 Bytes
/
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
version: '3.6'
services:
web:
build: .
volumes:
- ./:/app
- node_modules:/app/node_modules
working_dir: /app
ports:
- 3000:3000
environment:
NODE_ENV: development
RAILS_LOG_TO_STDOUT: 'true'
# Docker doesn't allow rails server to remove PID on shutdown
PID_FILE: /dev/null
depends_on:
- db
# To allow yarn --watch from Procfile.dev to continue after stdin is closed
tty: true
db:
image: postgres:11 # aligns the pg version with what is supported by dor-services-app
environment:
- POSTGRES_PASSWORD=sekret
volumes:
- postgres-data:/var/lib/postgresql/data
solr:
image: solr:latest
volumes:
- $PWD/solr/conf:/opt/solr/conf
ports:
- 8983:8983
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- blacklight-core
- /opt/solr/conf
- "-Xms256m"
- "-Xmx512m"
volumes:
node_modules:
postgres-data: