Skip to content
Snippets Groups Projects
Commit dc47d191 authored by Terry Brady's avatar Terry Brady
Browse files

move all compose files to one dir

parent a74f256c
No related branches found
No related tags found
No related merge requests found
# Docker Compose files
## root directory
## docker directory
- docker-compose.yml
- Starts DSpace Angular with Docker Compose from the current branch. This file assumes that a DSpace 7 REST instance will also be started in Docker.
## docker directory
- docker-compose-rest.yml
- Runs a published instance of the DSpace 7 REST API - persists data in Docker volumes
- docker-compose-travis.yml
......@@ -21,18 +19,18 @@
## To refresh / pull DSpace images from Dockerhub
```
docker-compose pull
docker-compose -f docker/docker-compose.yml pull
```
## To build DSpace images using code in your branch
```
docker-compose build
docker-compose-f docker/docker-compose.yml build
```
## To start DSpace (REST and Angular) from your branch
```
docker-compose -p d7 -f docker/docker-compose-rest.yml -f docker-compose.yml up -d
docker-compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d
```
## Run DSpace REST and DSpace Angular from local branches.
......@@ -60,6 +58,12 @@ Load content from AIP files
docker-compose -p d7 -f docker/cli.yml -f ./docker/cli.ingest.yml run --rm dspace-cli
```
## Alternative Ingest - Use Entities dataset
_Delete your docker volumes or use a unique project (-p) name_
```
docker-compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/db.entities.yml up -d
```
## End to end testing of the rest api (runs in travis).
_In this instance, only the REST api runs in Docker. Travis will perform CI testing of Angular using Node to drive the tests._
......
......@@ -26,6 +26,8 @@ services:
dspacedb:
container_name: dspacedb
image: dspace/dspace-postgres-pgcrypto
environment:
PGDATA: /pgdata
networks:
dspacenet:
stdin_open: true
......
......@@ -11,10 +11,10 @@ services:
DSPACE_SSL: "false"
image: dspace/dspace-angular:latest
build:
context: .
context: ..
dockerfile: Dockerfile
networks:
dspacenet:
dspacenet:
ports:
- published: 3000
target: 3000
......@@ -23,4 +23,4 @@ services:
stdin_open: true
tty: true
volumes:
- ./docker/environment.dev.js:/app/config/environment.dev.js
- ./environment.dev.js:/app/config/environment.dev.js
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment