Skip to content

i4Ds/heliotime-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heliotime

Start database:

./du.sh dev db:deploy

Docker Utility
du.sh is an alias to docker compose which loads the right compose files depending on the selected environment: development dev or production prod. Only production requires certain environment variables to be set. See Configuration for available options.

Configuration

The server, database, and site can be configured using the following environment variables:

Name
Dev Default Prod Default Description
EXTERNAL_DATABASE_PORT 5432 same Port the database will be exposed at.
DATABASE_HOST db / localhost same Hostname of the database. (Docker / Host)
DATABASE_PORT 5432 same Port of the database. (useful for external DBs)
DATABASE_DATABASE postgres same Name of the database to use.
DATABASE_USERNAME postgres same Username to authenticate with the database.
DATABASE_PASSWORD heliotime - Password to authenticate with the database.
IMPORT_START now - 30 days same From when to import data in ISO format.
NEXT_PUBLIC_API_URL http://localhost:8000 same URL used by the browser to access the API.