layout | title | permalink |
---|---|---|
default |
Hosting Instructions |
/hosting |
The application has to be hosted behind a Load Balancer that offers HTTPS termination. The iOS / Android apps will not work without HTTPS.
- Postgres: 14
- Elixir (only from source): As specified in the
.tool-versions
file - Erlang (only from source): As specified in the
.tool-versions
file - NodeJS (only from source): As specified in the
.tool-versions
file
ECTO_IPV6
- (true
|false
; defaultfalse
) - Connect to the database via IPv6 or IPv4DATABASE_SSL
- (true
|false
; defaultfalse
) - Connect to the database via TLSDATABASE_PREPARE
- (named
|unnamed
; defaultnamed
) - Use named prepared statements for DB (set tounnamed
when using PgBouncer)DATABASE_URL
- PostgreSQL db URLDATABASE_PORT
- (default:5432
) PostgreSQL db port (not compatible withDATABASE_URL
)DATABASE_USER
- (default:root
) PostgreSQL db user (not compatible withDATABASE_URL
)DATABASE_PASSWORD
- (default: empty) PostgreSQL db password (not compatible withDATABASE_URL
)DATABASE_NAME
- (default:athena_prod
) PostgreSQL db name (not compatible withDATABASE_URL
)DATABASE_HOST
- (default:localhost
) PostgreSQL db host (not compatible withDATABASE_URL
)PORT
- (default:4000
) Port to run the webserver onEXTERNAL_HOST
- (default:localhost
) External host of the webserver (used in URLs for QR code)EXTERNAL_PORT
- (default:4000
) External port of the webserver (used in URLs for QR code)EXTERNAL_SCHEME
- (default:http
) External port of the webserver (used in URLs for QR code)SECRET_KEY_BASE
- Secret key to sign cookiesLOG_LEVEL
- (debug
|info
|warn
|error
, default:info
) Log level of the applicationBASIC_AUTH_USERNAME
- (default:admin
) Log In user to Admin AreaBASIC_AUTH_PASSWORD
- (default:admin
) Log In password to Admin AreaBASIC_AUTH_REALM
- (default:Admin Area
) Name of Basic Auth prompt to Admin Area
The Athena Event Logistics backend is published as a GitHub Package.
docker run \
--name athena \
--port 4000:4000 \
-e "[ENV Variables]" \
ghcr.io/athena-logistics/athena-backend:[VERSION]
Authentication using docker login
is required for all GitHub packages.
Athena can be run from source. to do this follow the development instructions in the README.