Docker images for otf, an Open Source alternative to Terraform Cloud.
- Original Repo: https://github.com/leg100/otf
- Documentation: https://docs.otf.ninja
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: 3please 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