Skip to content

Instantly share code, notes, and snippets.

@oswaldolinhares
Created June 25, 2025 01:42
Show Gist options
  • Save oswaldolinhares/cead90480dbc2cf61ad1d3d8934a9f7b to your computer and use it in GitHub Desktop.
Save oswaldolinhares/cead90480dbc2cf61ad1d3d8934a9f7b to your computer and use it in GitHub Desktop.
Deploy Fund
service: imaginalle_store
image: oswaldolinhares/imaginalle_store
servers:
web:
hosts:
- xxx.xxx.xxx meu ip
proxy:
ssl: true
hosts:
- imaginalle.com
- www.imaginalle.com
volumes:
- "/var/lib/kamal/proxy/acme:/var/lib/kamal/proxy/acme"
- "imaginalle_store_storage:/rails/storage"
registry:
username: oswaldolinhares
password:
- KAMAL_REGISTRY_PASSWORD
env:
secret:
- RAILS_MASTER_KEY
- SHRINE_STORAGE_S3_BUCKET
- SHRINE_STORAGE_S3_REGION
- SHRINE_STORAGE_S3_ACCESS_KEY_ID
- SHRINE_STORAGE_S3_SECRET_ACCESS_KEY
- SHRINE_STORAGE_S3_ENDPOINT
- SHRINE_STORAGE_S3_CDN_HOST
clear:
RAILS_ENV: production
RAILS_SERVE_STATIC_FILES: true
asset_path: /rails/public/assets
builder:
arch: amd64
secrets:
- RAILS_MASTER_KEY
- SHRINE_STORAGE_S3_BUCKET
- SHRINE_STORAGE_S3_REGION
- SHRINE_STORAGE_S3_ACCESS_KEY_ID
- SHRINE_STORAGE_S3_SECRET_ACCESS_KEY
- SHRINE_STORAGE_S3_ENDPOINT
- SHRINE_STORAGE_S3_CDN_HOST
aliases:
console: app exec --interactive --reuse "bin/rails console"
shell: app exec --interactive --reuse "bash"
logs: app logs -f
dbc: app exec --interactive --reuse "bin/rails dbconsole"
migrate: app exec -- "bin/rails db:migrate"
seed: app exec -- "bin/rails db:seed"
precompile: app exec -- "bin/rails assets:precompile"
drop: app exec -- "bin/rails db:drop"
create: app exec -- "bin/rails db:create"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment