diff --git a/README.md b/README.md index 83409808ba17e237e03dd0a25e1a887f8248ffaf..7daf18b5e96e8826b84c59ecbcf39574307036c1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,19 @@ # DALIA's backend Django application server +## Deployment example + +[docker-compose.yml](docker-compose.yml) contains a simple example deployment of this Django application server and the [DALIA's Fuseki triplestore](https://git.rwth-aachen.de/dalia/backend/fuseki). + +To start the deployment: +```shell +docker-compose up +``` + +To stop the deployed application: +```shell +docker-compose down +``` + ## Development setup ### Requirements diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..b7b839632aae7341ee3488d93fcadc68cb20c863 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +# Example deployment + +services: + django: + image: registry.git.rwth-aachen.de/dalia/backend/django:dev + # alternative to pulling the image from the registry: build it + #build: . + ports: + - "8000:8000" + networks: + - fuseki_net + depends_on: + fuseki: + condition: service_healthy + + fuseki: + image: registry.git.rwth-aachen.de/dalia/backend/fuseki:dev + networks: + - fuseki_net + +networks: + fuseki_net: