-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 1.01 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
version: '3'
volumes:
db-fcrepo:
fcrepo:
# ocfl-root:
networks:
internal:
services:
fcrepo:
image: fcrepo/fcrepo:6.3.0-SNAPSHOT
expose:
- 8080
ports:
- 8080:8080
env_file:
- .env
networks:
internal:
depends_on:
- fcrepodb
volumes:
- fcrepo:$FCREPO_HOME
- ./fcrepo.properties:/data/fcrepo.properties
- ./ocfl_objects:$OCFL_ROOT
- ./shared_data:/data/shared_data
environment:
- CATALINA_OPTS=-Dfcrepo.home=$FCREPO_HOME -Dfcrepo.config.file=/data/fcrepo.properties
fcrepodb:
image: postgres:15-alpine
networks:
internal:
env_file:
- .env
expose:
- 5432
ports:
- 5432:5432
environment:
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- db-fcrepo:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "POSTGRES_PASSWORD=${POSTGRES_PASSWORD} pg_isready -U ${POSTGRES_USER} -h localhost -d ${POSTGRES_DB}"]
interval: 30s
timeout: 5s
retries: 3