Create the config file
mkdir data
nano data/config.tomlwith content:
LdapHost = "169.254.42.10"
LdapDomain = "mydomain.com"Internal Use: Create a self signed certificate.
Move them to data/cert.pem and data/key.pem.
mkcert <internal IP>Create and run docker-compose.yml:
services:
teamotp:
image: ghcr.io/luneutic/teamotp:0.1.0
container_name: teamotp
ports:
- 6443:6443
volumes:
- ./data:/app/data# Local binary
go build -o teamotp.bin ./cmd/teamotp
# Or run directly
go run ./cmd/teamotp
# Docker container
DOCKER_BUILDKIT=1 docker build -t teamotp .