-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.test.yml
62 lines (62 loc) · 1.29 KB
/
docker-compose.test.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
56
57
58
59
60
61
62
---
version: '3.4'
volumes:
db_test:
solr_test:
services:
db:
image: postgres:10-alpine
read_only: true
volumes:
- type: volume
source: db_test
target: /data
- type: volume
target: /tmp
- type: volume
target: /var/log
- type: volume
target: /var/run
environment:
- PGDATA=/data
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=d0ck3r
ports:
- 5434:5432
healthcheck:
test: "CMD echo 'SELECT 1' | PGPASSWORD=d0ck3r psql --host 127.0.0.1 --username docker
--dbname docker --quiet --no-align --tuples-only"
interval: 30s
timeout: 5s
retries: 3
solr:
image: solr:7.2-alpine
read_only: true
volumes:
- type: volume
source: solr_test
target: /opt/solr/server/solr
- type: volume
target: /opt/solr/server
- type: volume
target: /tmp
- type: volume
target: /var/log
- type: volume
target: /var/run
- type: bind
source: $PWD/solr
target: /opt/solr/server/solr/configsets/_default
ports:
- 8985:8983
command: solr-precreate blacklight-core
healthcheck:
test:
- CMD
- wget
- "-O"
- "/dev/null"
- http://localhost:8983/solr/
interval: 30s
timeout: 5s
retries: 3