-
Notifications
You must be signed in to change notification settings - Fork 0
Install WebProtege
Philip Fourie edited this page May 9, 2020
·
2 revisions
- Create YAML file
version: '3'
services:
wpmongo:
container_name: wpmongo
image: mongo:4.1-bionic
volumes:
- mongodata:/data/db
- mongocfg:/data/configdb
webprotege:
container_name: webprotege
image: protegeproject/webprotege
restart: "no"
environment:
- webprotege.mongodb.host=wpmongo
ports:
- 5000:8080
depends_on:
- wpmongo
volumes:
mongodata:
mongocfg:
volumes:
mongodata:
mongocfg:
Note local volumes are created. I am running this on Windows and cannot mount to Windows drives because MongoDB doesn't support it.
- Run
docker-compose up -d
Confirm that it is running:
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bd87afd066dd protegeproject/webprotege "catalina.sh run" 2 minutes ago Up 2 minutes 0.0.0.0:5000->8080/tcp webprotege
307aa726001f mongo:4.1-bionic "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 27017/tcp wpmongo
- Create admin user
docker exec -it webprotege /bin/bash -c "java -jar /webprotege-cli.jar create-admin-account"
- Navigate to settings
http://localhost:5000/#application/settings