2023-10-02 12:58:29 +00:00
# Contributing
> "First, thanks for considering to contribute to my project.
It really means a lot!" - [@andrasbacsai ](https://github.com/andrasbacsai )
You can ask for guidance anytime on our
[Discord server ](https://coollabs.io/discord ) in the `#contribution` channel.
2023-10-19 08:50:47 +00:00
## Code Contribution
2023-10-02 12:58:29 +00:00
2023-10-19 08:50:47 +00:00
### 1) Setup your development environment
2023-10-02 12:58:29 +00:00
- You need to have Docker Engine (or equivalent) [installed ](https://docs.docker.com/engine/install/ ) on your system.
2024-08-07 19:11:23 +00:00
- If you are using a Mac, I highly recommend installing [Orbsatck ](https://orbstack.dev/download ) as a much faster alternative and complete replacement to Docker Desktop.
- For better DX, install [Spin ](https://serversideup.net/open-source/spin/docs ).
2023-10-02 12:58:29 +00:00
2023-10-19 08:50:47 +00:00
### 2) Set your environment variables
2023-10-02 12:58:29 +00:00
- Copy [.env.development.example ](./.env.development.example ) to .env.
2024-08-07 19:11:23 +00:00
- Make sure to set the DB_HOST environment variable to the Postgres container IP or, if using Orbstack, use the container name (e.g., postgres.coolify.orb.local) to make sure that the DB Migrations work.
2023-10-02 12:58:29 +00:00
## 3) Start & setup Coolify
- Run `spin up` - You can notice that errors will be thrown. Don't worry.
2023-10-06 18:45:35 +00:00
- If you see weird permission errors, especially on Mac, run `sudo spin up` instead.
2024-08-07 19:11:23 +00:00
## 4) Install php to make sure you can do DB migrations (optional)
### 5) Start development
2023-10-02 12:58:29 +00:00
You can login your Coolify instance at `localhost:8000` with `test@example.com` and `password` .
Your horizon (Laravel scheduler): `localhost:8000/horizon` - Only reachable if you logged in with root user.
2023-10-17 18:54:26 +00:00
Mails are caught by Mailpit: `localhost:8025`
2023-10-19 08:50:47 +00:00
2024-08-07 19:11:23 +00:00
2023-10-19 08:50:47 +00:00
## New Service Contribution
2024-04-19 07:57:46 +00:00
Check out the docs [here ](https://coolify.io/docs/knowledge-base/add-a-service ).
2023-10-19 08:50:47 +00:00