Sign inSign up

nebo15/man_api

By nebo15

Updated over 9 years ago

Mán - templates rendeing as a service

Image
0

1.6K

nebo15/man_api repository overview

Source Code

Available in GitHub repo nebo15/man.api.

Docs

Fill description is available on official docs page.

Environment Variables

This environment variables can be used to configure released docker container at start time. Also sample .env can be used as payload for docker run cli.

General
VAR_NAMEDefault ValueDescription
ERLANG_COOKIEmFd1nWJ1KUxj..Erlang distribution cookie. Make sure that default value is changed in production.
LOG_LEVELinfoElixir Logger severity level. Possible values: debug, info, warn, error.
Database

Currently there are two options to set DB connections settings.

By setting a separate value for each option:

VAR_NAMEDefault ValueDescription
DB_NAMEmithril_api_devDatabase name.
DB_USERpostgresDatabase user.
DB_PASSWORDpostgresDatabase password.
DB_HOSTtravisDatabase host.
DB_PORT5432Database port.

By setting a single connection URI:

VAR_NAMEDefault ValueDescription
DATABASE_URLnot setDatabase URI. Example: postgres://postgres:postgres@travis:5432/mithril_api_dev

If you want to run migrations when container starts, use a DB_MIGRATE variable:

VAR_NAMEDefault ValueDescription
DB_MIGRATEtrueMigrate database when container starts.
Phoenix HTTP Endpoint
VAR_NAMEDefault ValueDescription
PORT4000HTTP host for web app to listen on.
HOSTlocalhostHTTP port for web app to listen on.
SECRET_KEYmFd1nWJ1KUxj..Phoenix :secret_key_base. Make sure that default value is changed in production.

Tag summary

Content type

Image

Digest

Size

269 MB

Last updated

over 9 years ago

docker pull nebo15/man_api