This guide uses Docker Compose to run Keila with PostgreSQL backend.
keila.example.com)mkdir -p /opt/keila && cd /opt/keila
Create docker-compose.yml:
services:
keila:
image: pentacent/keila:latest
container_name: keila
restart: unless-stopped
ports:
- "4000:4000"
environment:
- SECRET_KEY_BASE=generate-a-long-random-string-here
- DATABASE_URL=postgresql://keila:ChangeMe123!@db:5432/keila
- KEILA_URL=https://keila.example.com
- SMTP_HOST=smtp.example.com
- SMTP_PORT=587
- SMTP_USER=smtp-user
- SMTP_PASSWORD=smtp-password
volumes:
- keila_data:/var/lib/keila
depends_on:
- db
db:
image: postgres:15
container_name: keila-db
restart: unless-stopped
environment:
- POSTGRES_DB=keila
- POSTGRES_USER=keila
- POSTGRES_PASSWORD=ChangeMe123!
volumes:
- db_data:/var/lib/postgresql/data
volumes:
keila_data:
db_data:
Generate a secure secret key for SECRET_KEY_BASE:
openssl rand -base64 64
docker compose up -d
http://your-server:4000 in a browserpentacent/keila on Docker HubSECRET_KEY_BASE for each installationAny questions?
Feel free to contact us. Find all contact information on our contact page.