- Currently the setup is only tested for development on Mac OS and Linux
- Install and run Docker and Docker Compose
-
Execute the following command docker-compose command to start Dega
docker-compose up
-
When the application is started using docker-compose, a directory with name
factly
will be created at the root level to perisit all the data
Once the application is up and running you should be able to access it using the following urls:
- Dega: http://127.0.0.1:4455/.factly/dega/studio/
- Kavach: http://127.0.0.1:4455/.factly/kavach/web/auth/login
-
Execute the following command docker-compose command to stop Dega and all the components
docker-compose down
- Create config file with name config (and extension .env, .yml, .json) in
server/
and add config variables (eg. below)
MODE=development
KAVACH_URL=http://kavach-server:8000
IMAGEPROXY_URL=http://127.0.0.1:7001
KETO_URL=http://keto:4466
NATS_URL=http://nats:4222
KRATOS_PUBLIC_URL=http://kratos:4433
IFRAMELY_URL=http://iframely:8061
OATHKEEPER_HOST=oathkeeper:4455
MEILI_URL=http://meilisearch:7700
MEILI_KEY=password
DATABASE_HOST=postgres
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=dega
DATABASE_PORT=5432
DATABASE_SSL_MODE=disable
TEMPLATES_PATH=web/templates/*
DEFAULT_NUMBER_OF_MEDIA=10
DEFAULT_NUMBER_OF_SPACES=2
DEFAULT_NUMBER_OF_POSTS=10
CREATE_SUPER_ORGANISATION=true
SUPER_ORGANISATION_TITLE='Dega Administration'
[email protected]
DEFAULT_USER_PASSWORD=Password@321
- Create a folder companion in root
/
and create.env
file inside companion and add config variables (eg. below)
COMPANION_GOOGLE_KEY=GOOGLE_KEY
COMPANION_GOOGLE_SECRET=GOOGLE_SECRET
COMPANION_AWS_ENDPOINT=http://localhost:9000
COMPANION_AWS_BUCKET=dega
COMPANION_AWS_KEY=miniokey
COMPANION_AWS_SECRET=miniosecret
COMPANION_DOMAIN=localhost:3020
COMPANION_PROTOCOL=http
COMPANION_DATADIR=/
COMPANION_SELF_ENDPOINT=localhost:3020
NODE_ENV=dev