https://github.com/digital-botanical-gardens-initiative/directus-db

The Directus self hosting scripts

https://github.com/digital-botanical-gardens-initiative/directus-db

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary
Last synced: 5 months ago · JSON representation

Repository

The Directus self hosting scripts

Basic Info
  • Host: GitHub
  • Owner: digital-botanical-gardens-initiative
  • License: gpl-3.0
  • Language: Shell
  • Default Branch: main
  • Size: 38.1 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Archived
Created about 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Archived !

Please refer to the now splitted repos :

  • https://github.com/digital-botanical-gardens-initiative/Directus-prod
  • https://github.com/digital-botanical-gardens-initiative/Directus-dev
  • https://github.com/digital-botanical-gardens-initiative/directus-backup

DBGI Directus instance

This repository contains a Docker Compose setup for a Directus instance for the DBGI sample handling. This setup is temporary (longer term solution is beeing built at https://github.com/earth-metabolome-initiative/emi-monorepo). To get started, follow the instructions below.

Prerequisites

Before you begin, make sure you have the following prerequisites installed:

Setup

  1. Clone the repository to your local machine:

bash git clone https://github.com/digital-botanical-gardens-initiative/directus-db.git cd directus-db

  1. Create a .env file in the root directory of your project. Use this file to store your sensitive data, such as database credentials and application secrets.

  2. Open the .env file in a text editor and add the following variables, replacing the placeholders with your actual credentials and settings:

```sh

Database credentials

POSTGRESUSER=yourpostgresuser POSTGRESPASSWORD=yourpostgrespassword POSTGRESDB=yourpostgres_db

Directus service credentials

DIRECTUSDBCLIENT=pg DIRECTUSDBHOST=yourdatabasehost DIRECTUSDBPORT=5432 DIRECTUSDBDATABASE=directus DIRECTUSDBUSER=yourdirectususer DIRECTUSDBPASSWORD=yourdirectuspassword

Other environment variables for Directus

KEY=yourdirectuskey CACHEENABLED=true CACHESTORE=redis REDIS=redis://cache:6379 PUBLIC_URL=https://directus.example.com ```

Replace the values with your actual credentials and configuration details.

Deployment

To deploy the application, run the following Docker Compose command:

sh docker-compose up -d

Note: using the latest Directus image you might need to launch this command several time see https://github.com/directus/directus/issues/20542

This command will start the necessary services, including the database and your application.

Accessing Your Application

Once the deployment is complete, you can access your application by opening a web browser and navigating to http://localhost:8056 (or the appropriate URL as per your configuration).

Stopping and Cleaning Up

To stop the application and remove the containers, run the following command:

sh docker-compose down

Contributing

If you would like to contribute to this project or report issues, please follow our contribution guidelines.

License

see the LICENSE.md file for details.

Owner

  • Name: The Digital Botanical Garden Initiative
  • Login: digital-botanical-gardens-initiative
  • Kind: organization

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Dependencies

docker-compose.yml docker
  • directus/directus 10.8.3
  • postgis/postgis 13-master
  • redis 6
Dockerfile docker
  • postgis/postgis 13-master build
  • postgres latest build