Skip to content

Instantly share code, notes, and snippets.

@sapandiwakar
Created May 13, 2025 11:19
Show Gist options
  • Save sapandiwakar/c99e555ed45f293c7b6b3edcd1dfec40 to your computer and use it in GitHub Desktop.
Save sapandiwakar/c99e555ed45f293c7b6b3edcd1dfec40 to your computer and use it in GitHub Desktop.
Minimal Kamal Deployment Configuration for Deploying a Phoenix Application
service: my-app
image: my-org/my-app
servers:
web:
- 192.168.1.100
proxy:
ssl: true
app_port: 4000
registry:
server: ghcr.io
username: ignore
password:
- REGISTRY_PASSWORD
env:
secret:
- DATABASE_URL
- SECRET_KEY_BASE
aliases:
console: app exec --interactive --reuse "/app/bin/my_app remote"
shell: app exec --interactive --reuse "/bin/sh"
logs: app logs -f
builder:
arch: amd64
cache:
type: registry
options: mode=max,image-manifest=true,oci-mediatypes=true
ssh:
user: my_user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment