docker --version
to check your installation..envs_template
directory into a new .envs
directory within the Ghostwriter directory. These files control the environment variables for the Docker containers.mkdir .envs && cp -r .envs_template/.* .envs
.
characters in different ways. This is discussed in this thread and issue:zsh
, use this command: setopt dotglob
.envs
directory contains .local
and .production
directories. Each of these directories contains the same set of files: .django
, .postgres
, and .hasura
. These files manage the environment variables for the Docker containers.DATE_FORMAT
use Django's format string values. They are different than Python's standard values you might be familair with. Django also offers several additional options..envs
directory setup, check Docker to make sure the service is running. Then build and start the Docker containers using the local.yml
file (not production.yml
):docker-compose -f local.yml stop; docker-compose -f local.yml rm -f; docker-compose -f local.yml build; docker-compose -f local.yml up -d
-d
at the end means you will detach from the containers. If you'd like to monitor live console output, remove -d
to remain attached to the containers. This is helpful during development and testing.production.yml
. Production is geared towards actual production use. Therefore, it does not perform certain operations required for the initial setup that might be undesirable in production.