-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
40 lines (40 loc) · 1.21 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
version: "3"
services:
db:
container_name: dspace_db_${PROJECT_NAME}
image: postgres:9.5-alpine
environment:
POSTGRES_DB: "dspace_db_${PROJECT_NAME}"
POSTGRES_USER: dspace
POSTGRES_PASSWORD: dspace
volumes:
- /var/lib/postgresql/data
dspace:
container_name: dspace_${PROJECT_NAME}
image: dspace:dspace_${PROJECT_NAME}_latest
build:
context: ./
dockerfile: Dockerfile
command: start
environment:
CATALINA_OPTS: "-Xmx1024m -Xms512m -XX:MaxPermSize=256m"
DSPACE_GIT_URL: "${DSPACE_GIT_URL}"
DSPACE_GIT_REVISION: "${DSPACE_GIT_REVISION}"
DSPACE_WEBAPPS: "${DSPACE_WEBAPPS}" # posible values: "jspui xmlui mirage2 rest oai rdf sword swordv2"
DSPACE_ROOT_WEBAPP: "${DSPACE_ROOT_WEBAPP}"
POSTGRES_DB_HOST: "dspace_db_${PROJECT_NAME}"
POSTGRES_DB_NAME: "dspace_db_${PROJECT_NAME}"
DSPACE_USER: dspace
DSPACE_PASS: dspace
volumes:
- ./data/:/dspace/
- ~/.m2/:/dspace/.m2/
ports:
- "9090:8080"
depends_on:
- db
### Configure this option if you want to add this services to an external network...
#networks:
# default:
# external:
# name: ${DOCKER_EXTERNAL_NETWORK_NAME}