Code Monkey home page Code Monkey logo

docker's Introduction

Directus Logo

 

The All-New Directus 7
Future-Proof Headless CMS

WebsiteDocsAPI ReferenceUser GuideDemoContribute

 

Overview

Directus docker images can be found in docker hub under directus username. Images are pushed automatically each time a new release is created in api or app repositories.

API Container

Requirements

  • MySQL compatible database container running

Configuration

API can be configured via environment variables. These are some of the supported variables.

General variables

Environment Required Default Description
APP_TIMEZONE   America/New_York The API server timezone

Authentication variables

Environment Required Default Description
ADMIN_EMAIL Yes*   The admin email
ADMIN_PASSWORD   generated** The admin password

* If there's no directus tables on the database, the auto-installation process will require you to provide the initial admin email, thus requiring the ADMIN_EMAIL variable in order to seed the initial user into the database.

** The installation process will not require the ADMIN_PASSWORD to be set, and if it doesn't detect it, it will generate a new password and output the credentials in the logs when it finishes seeding.

Database variables

Environment Required Default Description
DATABASE_HOST Yes   The database hostname/address
DATABASE_USERNAME Yes   The database username
DATABASE_PASSWORD Yes   The database password
DATABASE_PORT   3306 The database port
DATABASE_NAME   directus The database name
DATABASE_TYPE   mysql The database type
DATABASE_ENGINE   InnoDB The database engine
DATABASE_CHARSET   utfmb4 The database charset

App Container

Configuration

App can be configured via environment variables. These are some of the supported variables.

General variables

Environment Required Default Description
API_ENDPOINT[_NAME] At least once   The supported `api` endpoints.
Should follow the format "Name; url"

You can manage multiple api endpoints using only one instance of app container. For example, if you want to manage two instances, you should set two variables that starts with API_ENDPOINT_

API_ENDPOINT_STAGING="Staging; http://staging.server.com/_/"
API_ENDPOINT_PRODUCTION="Production; http://production.server.com/_/"

Examples

You can check examples under the examples folder on GitHub.

 


Directus is released under the GPLv3 license. RANGER Studio LLC owns all Directus trademarks and logos on behalf of our project's community. Copyright © 2006-2019, RANGER Studio LLC.

docker's People

Contributors

benhaynes avatar leocavalcante avatar rijkvanzanten avatar robbatt avatar vburghelea avatar wolfulus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.