Coolify: Difference between revisions

From CRC
No edit summary
No edit summary
Line 1: Line 1:
Coolify lets you deploy apps directly from GitHub repositories and run them forever.
Coolify lets you deploy apps directly from GitHub repositories and run them forever.


== Info ==
* https://coolify.artyom.me
* https://coolify.artyom.me
* Hosted by [[User:Emily|Emily]]
* Hosted by [[User:Emily|Emily]]
* Everyone has admin access and can invite people
* Everyone has admin access and can invite people


== Create a GitHub Repository ==
== How to host your bot/project on Coolify ==
 
=== Create a GitHub Repository ===
# Go to [https://github.com/new GitHub new repository].
# Go to [https://github.com/new GitHub new repository].
# Make it **public**.
# Make it **public**.
Line 12: Line 15:
# After that, return to your Coolify instance.
# After that, return to your Coolify instance.


== Add a Project in Coolify ==
=== Add a Project in Coolify ===
# Go to [https://coolify.artyom.me/projects Coolify Projects].
# Go to [https://coolify.artyom.me/projects Coolify Projects].
# Click '''Add Project'''.
# Click '''Add Project'''.
# Enter a name and description.
# Enter a name and description.


== Add a Resource ==
=== Add a Resource ===
# In your project, go to the '''Resources''' tab.
# In your project, go to the '''Resources''' tab.
# Choose '''New'''.
# Choose '''New'''.

Revision as of 08:40, 26 September 2025

Coolify lets you deploy apps directly from GitHub repositories and run them forever.

Info

How to host your bot/project on Coolify

Create a GitHub Repository

  1. Go to GitHub new repository.
  2. Make it **public**.
  3. Do not initialize with a `README.md`.
  4. Press Create Repository.
  5. After that, return to your Coolify instance.

Add a Project in Coolify

  1. Go to Coolify Projects.
  2. Click Add Project.
  3. Enter a name and description.

Add a Resource

  1. In your project, go to the Resources tab.
  2. Choose New.
  3. Select your kind of application (commonly Public Repository).
  4. Enter the link to your GitHub repository:
 https://github.com/<username>/<repository>
  1. Press Check Repository.
  2. If you want quick setup, pick the default settings.
  3. Press Continue and Deploy.

Your app will now run continuously.

Environment Variables

  • Environment Variables are stored secrets or settings for your project.
  • They can be accessed inside your app, for example in Python:
 os.environ.get("MY_SECRET")  

Storage

  • Coolify provides a project storage volume.
  • Example in Python with TinyDB:
 TinyDB("/storage/cooldowns.json")

Notes

  • Do not confuse **Shared Variables** with **Environment Variables**:
    • Shared Variables are global values available across multiple resources.
    • Environment Variables are specific to one app, usually secrets.