Skip to content

Commit

Permalink
modify expected .env and docker composes (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoBerger authored Sep 7, 2023
1 parent bce5451 commit 8fc535b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
11 changes: 6 additions & 5 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ services:
TZ: ${TIMEZONE:-Europe/Bratislava}
DSPACE_UI_SSL: 'false'
DSPACE_UI_HOST: dspace-angular
DSPACE_UI_PORT: 400${INSTANCE}
DSPACE_UI_PORT: 4000
DSPACE_UI_NAMESPACE: /
DSPACE_REST_SSL: 'true'
DSPACE_REST_HOST: ${DSPACE_REST_HOST:-localhost}
DSPACE_REST_PORT: 8${INSTANCE}
DSPACE_REST_SSL: ${DSPACE_SSL:-false}
DSPACE_REST_HOST: ${DSPACE_HOST:-localhost}
DSPACE_REST_PORT: ${DSPACE_REST_PORT}
DSPACE_REST_NAMESPACE: /server
image: ${DSPACE_UI_IMAGE:-dataquest/dspace-angular:dspace-7_x}
volumes:
Expand All @@ -31,9 +31,10 @@ services:
dockerfile: Dockerfile
networks:
dspacenet:
entrypoint: ${FE_CMD:-/bin/sh -c "pm2 start dspace-ui.json && pm2 logs"}
ports:
- published: 400${INSTANCE}
target: 400${INSTANCE}
target: 4000
host_ip: 127.0.0.1
- published: 987${INSTANCE}
target: 987${INSTANCE}
Expand Down
9 changes: 1 addition & 8 deletions dspace-ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@
"script": "dist/server/main.js",
"instances": "7",
"exec_mode": "cluster",
"node_args": "--max_old_space_size=4096",
"env": {
"NODE_ENV": "production",
"DSPACE_REST_SSL": "true",
"DSPACE_REST_HOST": "dspace.tul.cz",
"DSPACE_REST_PORT": "443",
"DSPACE_REST_NAMESPACE": "/server"
}
"node_args": "--max_old_space_size=4096"
}
]
}

0 comments on commit 8fc535b

Please sign in to comment.