Skip to content

Prepare self host mode#144

Open
djhi wants to merge 7 commits intomainfrom
docker
Open

Prepare self host mode#144
djhi wants to merge 7 commits intomainfrom
docker

Conversation

@djhi
Copy link
Contributor

@djhi djhi commented Jan 19, 2026

Problem

Fixes #89

We want to ease self hosting.

Solution

  • Initialize supabase docker configuration on request to avoid replicating it in the repo which would require us to sync it too
  • Document how to configure it properly
  • Document how to apply migrations
  • Configure the new publishable keys

How To Test

Follow the Self Hosting documentation added in this PR

Additional Checks

  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@djhi djhi added the RFR label Jan 26, 2026
@djhi djhi marked this pull request as ready for review January 26, 2026 09:11
Once this is done, you can run the following command to start the development environment:

```sh
make docker-start
Copy link
Collaborator

@WiXSL WiXSL Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't start everything without setting these params first:

FRONTEND_HTTP_HOST=true
FRONTEND_HTTP_PORT=3000
FRONTEND_HMR_PORT=3001

make docker-start output:

docker compose -p atomic-crm --env-file .env.development --env-file ./docker/.env -f ./docker/docker-compose.yml -f ./docker/docker-compose-atomic.yml up
WARN[0000] The "FRONTEND_HMR_PORT" variable is not set. Defaulting to a blank string.
WARN[0000] The "FRONTEND_HTTP_HOST" variable is not set. Defaulting to a blank string.
WARN[0000] The "FRONTEND_HTTP_PORT" variable is not set. Defaulting to a blank string.
WARN[0000] The "FRONTEND_HTTP_PORT" variable is not set. Defaulting to a blank string.
WARN[0000] The "FRONTEND_HTTP_PORT" variable is not set. Defaulting to a blank string.
WARN[0000] The "FRONTEND_HMR_PORT" variable is not set. Defaulting to a blank string.
WARN[0000] The "FRONTEND_HMR_PORT" variable is not set. Defaulting to a blank string.
invalid proto:
make: *** [makefile:102: docker-start] Error 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's explained in the self hosting documentation

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ you are right

VITE_SUPABASE_URL=http://localhost:8000
```

Replace the port of the `VITE_SUPABASE_URL` variable with the one you choose in the Supabase `./docker/.env` file.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No mention of updating VITE_SUPABASE_ANON_KEY to the ANON_KEY from docker/.env.
With the demo key, signup returns 401 “Invalid authentication credentials,” blocking the first user.

Copy link
Collaborator

@WiXSL WiXSL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth mentioning in the docs:

After editing .env / .env.development, you must restart the stack (make docker-stop + make docker-start) so containers pick up the new values.

@djhi djhi added WIP and removed RFR labels Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How about a Docker Compose file?

2 participants

Comments