Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.02 KB

docker.md

File metadata and controls

32 lines (22 loc) · 1.02 KB

Self Hosting

Docker is used to distribute the Headbase server for self-hosting.

Using the Docker image

The docker image is published to the Github Container Registry and can be pulled like so:

docker pull ghcr.io/headbase-app/server

You can then run that image, however remember:

  • You must supply all environment variables as defined in packages/server/.env.example.
  • You will need to expose the port which matches the PORT environment variable you define, for example -p 8080:8080.

Development

The headbase-app/server docker image is automatically created and published via GitHub actions when a tag with the pattern server/** is created or pushed.

Manually creating the image

To manually create a docker image locally for testing you can do:

docker build . --tag headbase-server

Run the image

docker run headbase-server -p 8080:8080