Advanced App Settings
Hostim.dev lets you control important settings for each app, including environment variables, CPU and memory scaling, and access to services like databases and volumes.
These options help you fine-tune how your app runs.
Environment variables
You can define environment variables at the app or project level.
- App-level variables override project values
- Useful for secrets, configuration, or feature flags
To set environment variables:
- Open your app in the dashboard
- Go to the Envs tab
- Add or edit key-value pairs
Any database or Redis service you create automatically exposes environment
variables for its connection details. The names are based on the service name
so they can be easily referenced in your app configuration. For example, if you
add a MySQL database named blog
, the variables
BLOG_MYSQL_HOST
, BLOG_MYSQL_PORT
,
BLOG_MYSQL_DATABASE
, BLOG_MYSQL_USER
and
BLOG_MYSQL_PASSWORD
become available. You can interpolate these in
other environment variables using the $(VAR_NAME)
syntax:
If you add a Redis store named cache
, you'll see CACHE_REDIS_HOST
,
CACHE_REDIS_DB
and CACHE_REDIS_PORT
.
EBK_DATABASE_HOST=$(BLOG_MYSQL_HOST):$(BLOG_MYSQL_PORT)
EBK_DATABASE_NAME=$(BLOG_MYSQL_DATABASE)
EBK_DATABASE_USER=$(BLOG_MYSQL_USER)
EBK_DATABASE_PASSWD=$(BLOG_MYSQL_PASSWORD)
Scaling and resources
Each app runs with dedicated CPU and memory limits.
You can:
- Scale vertically by selecting a different plan (CPU and memory)
- Scale horizontally by adding more replicas
To adjust scaling:
- Open the app page
- Click on Edit
- Choose the desired plan
- Choose the number of replicas
- Click Update App
Connecting services
Apps can connect to services inside the same project:
- MySQL, PostgreSQL or Redis databases
- Volumes for file storage
These connections use internal networking, so no public internet access is required between services.
Volumes
If your app needs to store files, you can mount a volume:
- Volumes are persistent across deployments
- They can be resized or removed later
See Volumes for setup steps.