Skip to content

Commit 2c2f59c

Browse files
committed
Update cli.yml to reference dspacenet in docker-compose-rest. Remove unnecessary network from cli.assetstore.yml
1 parent 5a42f39 commit 2c2f59c

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

docker/cli.assetstore.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,8 @@
1414
# Therefore, it should be kept in sync with that file
1515
version: "3.7"
1616

17-
networks:
18-
dspacenet:
19-
2017
services:
2118
dspace-cli:
22-
networks:
23-
dspacenet: {}
2419
environment:
2520
# This assetstore zip is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
2621
- LOADASSETS=https://github.com/DSpace-Labs/AIP-Files/releases/download/demo-entities-data/assetstore.tar.gz

docker/cli.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
#
1414
# Therefore, it should be kept in sync with that file
1515
version: "3.7"
16-
16+
networks:
17+
# Default to using network named 'dspacenet' from docker-compose-rest.yml.
18+
# Its full name will be prepended with the project name (e.g. "-p d7" means it will be named "d7_dspacenet")
19+
default:
20+
name: ${COMPOSE_PROJECT_NAME}_dspacenet
21+
external: true
1722
services:
1823
dspace-cli:
1924
image: "${DOCKER_OWNER:-dspace}/dspace-cli:${DSPACE_VER:-latest}"
@@ -30,16 +35,12 @@ services:
3035
# solr.server: Ensure we are using the 'dspacesolr' image for Solr
3136
solr__P__server: http://dspacesolr:8983/solr
3237
volumes:
33-
- "assetstore:/dspace/assetstore"
38+
# Keep DSpace assetstore directory between reboots
39+
- assetstore:/dspace/assetstore
3440
entrypoint: /dspace/bin/dspace
3541
command: help
36-
networks:
37-
- dspacenet
3842
tty: true
3943
stdin_open: true
4044

4145
volumes:
4246
assetstore:
43-
44-
networks:
45-
dspacenet:

0 commit comments

Comments
 (0)