Logo

Docker Compose

Docker Compose file

Download the docker-compose.yml file from the github repository.

Configure Docker Compose

Edit the environment variables in the docker-compose.yml file to set your configuration values:

Environment VariableDescriptionExample
NUXT_DATABASE_URLDatabase connection stringpostgresql://postgres:root@postgres:5432/ziit
NUXT_PASETO_KEYPASTEO local key(Generate with echo k4.local.$(openssl rand -base64 32))
NUXT_GITHUB_CLIENT_IDGitHub OAuth client IDyour_github_client_id from the steps earlier
NUXT_GITHUB_CLIENT_SECRETGitHub OAuth client secretyour_github_client_secret from the steps earlier
NUXT_GITHUB_REDIRECT_URIGitHub OAuth redirect URLhttps://ziit.exmaple.com/api/auth/github/callback
NUXT_HOSTDomain where Ziit will be hostedziit.exmaple.com
NUXT_DISABLE_REGISTRATIONDisable user registrationfalse

Be sure to replace the example values with your actual configuration details before proceeding.

Build and Start Containers

Run the following command in your terminal:

Start Docker Compose
docker compose up -d

The application will be available at http://localhost:3000 (or your configured host/port).

Stop Containers

When needed, you can stop the containers with:

Stop Docker Compose
docker compose down

On this page

Edit on Github