Skip to content
kdpuvvadiPublic

About

Docker images for otf, an Open Source alternative to Terraform Cloud

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

otf logo

Docker images for otf, an Open Source alternative to Terraform Cloud.

Docker compose for otf

services:
  postgres:
    image: postgres:18-alpine
    ports:
      - "5432:5432"
    environment:
     - POSTGRES_PASSWORD=postgres
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 3

  otfd:
    image: ghcr.io/kdpuvvadi/otf:latest
    container_name: otf
    ports:
      - "8080:8080"
    depends_on:
      postgres:
    environment:
      - OTF_DATABASE=postgres://postgres:postgres@postgres/postgres?sslmode=disable
      - OTF_SECRET=secret # The secret must be a hex-encoded 16-byte array. Generate using openssl rand -hex 16
      - OTF_SITE_TOKEN=site-token
      - OTF_LOG_HTTP_REQUESTS=true
      - OTF_HOSTNAME=otf.example.com
      #- OTF_SSL=true
      #- OTF_CERT_FILE=/fixtures/cert.pem
      #- OTF_KEY_FILE=/fixtures/key.pem
      #- SSL_CERT_FILE=/fixtures/cert.pem
    healthcheck:
      test: ["CMD", "sh", "-c", "echo check | nc localhost 8080"]
      interval: 5s
      timeout: 5s
      retries: 3

Docker compose for otf agent

please refer to documentation on how to generate token for deploying agents

services:
  otf-agent:
    image: ghcr.io/kdpuvvadi/otf-agent:latest
    container_name: otf-agent
    environment:
      - OTF_URL=https://otf.example.com
      - OTF_TOKEN=token
    command: --token OTF_TOKEN --url OTF_URL

About

Docker images for otf, an Open Source alternative to Terraform Cloud

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages