Start database:
./du.sh dev db:deploy
Docker Utility
du.sh
is an alias todocker compose
which loads the right compose files depending on the selected environment: developmentdev
or productionprod
. Only production requires certain environment variables to be set. See Configuration for available options.
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. |