This is the list of environment variables you need to work with the FRAAND project.
In brackets ( <value> )
you will find the working values for development,
i.e., they are good to go with docker-compose.dev.yml.
POSTGRES_HOST
(localhost
) — DB server address, can be docker-compose hostnames.POSTGRES_PORT
(5432
) — DB server port.POSTGRES_USER
(fraand_user
) — DB user, don't usepostgres
orroot
!POSTGRES_PASSWORD
— DB user password, use complex generated passwords only!POSTGRES_DB
(fraand_db
) — actual database name/address in the DBMS.
Cross-origin resource sharing (CORS)
TODO: Explain this section, fix [*]
...
CORS_CREDENTIALS
(True
)CORS_ORIGINS
([*]
)CORS_METHODS
([*]
)CORS_HEADERS
([*]
)
FASTAPI_ENV
(DEV
) — used to determine whether to generate OpenAPI (/docs
route).ENVIRONMENT
(dev
) — used in Dockerfile to determine correct requirements file (inrequirements/
folder).TITLE
(FRAAND
) — project's title to display in OpenAPI, etc.PATH_TO_PROJECT
— an absolute path to your project's root directory, used indocker-compose*.yml
for mounting volumes correctly.