-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
94 lines (84 loc) · 2.19 KB
/
compose.yml
File metadata and controls
94 lines (84 loc) · 2.19 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: dspace
# We define a custom subnet so we know what network to allow DSpace to trust.
# Its netmask and the service IPs *must be set in the compose override*
# otherwise DSpace cannot function!
networks:
dspacenet: {}
services:
web:
build:
dockerfile: Dockerfile-apache
depends_on:
- angular
- rest
networks:
dspacenet: {}
angular:
build:
dockerfile: Dockerfile-angular
depends_on:
- rest
environment:
DSPACE_UI_SSL: 'false'
DSPACE_UI_HOST: localhost
DSPACE_UI_PORT: 4000
DSPACE_UI_NAMESPACE: /
DSPACE_REST_SSL: 'false'
DSPACE_REST_HOST: localhost
DSPACE_REST_PORT: 8080
DSPACE_REST_NAMESPACE: /server
volumes:
- angular-cache:/app/.angular
- node-modules:/app/node_modules
networks:
dspacenet: {}
rest:
build:
dockerfile: Dockerfile-rest
# The env key syntax may look odd, but it is how to override dspace.cfg
# settings via env variables.
#
# - `__P__` becomes `.` (e.g. dspace__P__dir => dspace.dir)
# - `__D__` becomes `-` (e.g. google__D__metadata => google-metadata)
#
# See https://github.com/DSpace/DSpace/blob/main/dspace/config/config-definition.xml
environment:
# You *could* override this if you know what you're doing. But you
# probably shouldn't.
LOGGING_CONFIG: /usr/local/dspace/config/log4j2-container.xml
# You probably want to override these, or at least verify they make sense
# for your setup
dspace__P__name: 'DSpace Started with Docker Compose'
JAVA_OPTS: -Xmx2000m
depends_on:
- db
- solr
networks:
dspacenet: {}
volumes:
- assetstore:/usr/local/dspace/assetstore
db:
build:
dockerfile: Dockerfile-pgsql
environment:
POSTGRES_USER: dspace
POSTGRES_PASSWORD: dspace
POSTGRES_DB: dspace
networks:
dspacenet:
volumes:
- db:/var/lib/postgresql/data
solr:
build:
dockerfile: Dockerfile-solr
networks:
dspacenet:
volumes:
- solr:/var/solr
command: ["solr", "-f"]
volumes:
assetstore: {}
db: {}
solr: {}
angular-cache: {}
node-modules: {}