Skip to content

Commit

Permalink
add volumes to database for production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jun 12, 2020
1 parent b5fba34 commit 77c93ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ TODO: Include a link to your project's full documentation here.

Download the `docker-compose.prod.yml` from this repo, change the `HOSTNAME` in the file to a proper host.
The default port is `80`, and you can use other port (e.g. `8080`) if port `80` is used.
Also change the `DATABASE_PATH` to a local path for the SPARQL database.
Then run the command
```
docker-compose -f docker-compose.prod.yml up -d
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ services:
- "8890:8890"
- "1111:1111"
environment:
SPARQL_UPDATE: "true"
SPARQL_UPDATE: "true"
volumes:
- DATABASE_PATH:/data

0 comments on commit 77c93ee

Please sign in to comment.