8000 Quickstart · kimdre/doco-cd Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Quickstart

Kim Oliver Drechsel edited this page May 8, 2025 · 14 revisions

Prepare and deploy the application

Use this example docker-compose.yml as your starting point.

Create a Git Access Token

You need to create an access token that doco-cd will use to authenticate with your Git provider (GIT_ACCESS_TOKEN). See Setup Access Token to create this access token.

Adjust the app settings

In the environment section of the docker-compose.yml:

  • Set the GIT_ACCESS_TOKEN to the access token you just created.
  • Set the WEBHOOK_SECRET to a random password, that will be used to authenticate webhooks. You can use tools like pwgen or openssl to generate a random password.
    # Generate a random password with pwgen
    pwgen -s 40 1
    # Generate a random password with openssl
    openssl rand -base64 40

You can find all available settings on the app settings page.

Usage with a .env file

Alternatively, you can create a .env file with the settings and use the env_file option instead of environment in the docker-compose.yml file.

services:
  app:
    ...
-    environment:
-      GIT_ACCESS_TOKEN: ${GIT_ACCESS_TOKEN}
-      WEBHOOK_SECRET: ${WEBHOOK_SECRET}
+    env_file:
+      - .env
...

Write the app settings in the .env file in the format KEY=VALUE:

GIT_ACCESS_TOKEN=xxx
WEBHOOK_SECRET=xxx

Running the application

After you have created the docker-compose.yml file, you can run the application with the following command:

docker compose up -d

You can check the logs of the application with the following command:

docker compose logs -f

To be able to reach the application via SaaS products like Github or Gitlab, you need to expose the http endpoint of the application to the internet. You can use a reverse proxy like NGINX, Traefik or Caddy for this purpose.

Next steps

After you have set up the application, you can proceed with the following steps:

  1. Deploy Settings - Configure the Docker Compose deployment in your repositories.
  2. Webhook Setup - Set up a webhook for your deployments.
Clone this wiki locally
0