Hosting
Our recommended hosting partner is Elestio as you can boot up a cloud based version of Llana with just a few clicks.
Elestio
You can visit the Llana page on Elest.io or follow the instructions below.
- Login to Elest.io
- Click 'Create new service' in the top right corner
- Search "llana" and select
- Choose your hosting partner and configurations
- Once deployed, add your environment variable and custom domain name
Full details available here.
Docker
- Choose your preferred cloud provider (ideally in the same location as your database)
- Use the following docker-compose.yml
name: llana
services:
llana-app:
container_name: llana-app
image: juicyllama/llana:latest
ports:
- "3000:3000"
environment:
BASE_URL_API: ${BASE_URL_API}
BASE_URL_APP: ${BASE_URL_APP}
DATABASE_URI: ${DATABASE_URI}
JWT_KEY: ${JWT_KEY}
JWT_REFRESH_KEY: ${JWT_REFRESH_KEY}
DOMAIN: ${DOMAIN}
AUTH_COOKIES_DOMAIN: ${AUTH_COOKIES_DOMAIN}
SOFT_DELETE_COLUMN: ${SOFT_DELETE_KEY}
- Add your environment variable, paying special attention to the
DATABASE_URI
,JWT_KEY
,JWT_REFRESH_KEY
andDOMAIN
#Base
BASE_URL_API=http://your-llana-server-url.com
BASE_URL_APP=http://your-llana-frontend-app-url.com
DATABASE_URI="mysql://user:pass@host:port/database"
JWT_KEY="secret"
JWT_REFRESH_KEY="another_secret"
DOMAIN="your.app.domain"
AUTH_COOKIES_DOMAIN="your-frontend-domain.com"
#Delete Settings
SOFT_DELETE_COLUMN=deletedAt
- Once complete, you an easily add your own domain name following your hosting providers instructions.