Overview
This gateway running on Docker for sign your document from your premise using PAT (Personal Access Token) generated by our Open API
Prerequisites
Before you begin, make sure your system meets these basic requirements:
- Operating System: Docker Desktop is available for Windows, macOS, and Linux.
- Windows: Windows 10 64-bit: Pro 21H2 (build 19044) or higher, or Enterprise or Education 21H2 (build 19044) or higher. You’ll need WSL 2 installed and enabled.
- macOS: macOS 10.15 (Catalina) or newer.
- Linux: Check the official Docker documentation for specific distribution requirements (e.g., Ubuntu, Fedora, Debian).
- System Resources:
- 4GB RAM minimum.
- Enable hardware virtualization in your BIOS/UEFI settings.
Environment Variables
To run this project, you will need to add the following environment variables
API_KEY="your-api-key"
API_URL="https://api.xignature.dev"
ENV="STAGING"
OTEL_SERVICE_NAME=<change-to-your-corporate-name>
API_KEY="your-api-key"
API_URL="https://api.xignature.co.id"
ENV="STAGING"
OTEL_SERVICE_NAME=<change-to-your-corporate-name>
Authenticate To Our Registry
docker login registry.xignature.co.id -u public
Please ask our team to provide you the password to authenticate to our
registry
Running Docker Container
docker run -d --name sign-gateway -p 1303:1303 -e API_URL=https://api.xignature.dev -e API_KEY=your-api-key -e ENV=STAGING -e OTEL_SERVICE_NAME=xignature-staging registry.xignature.co.id/xignature/public-sign-gateway:2.1.0
docker run -d --name sign-gateway -p 1303:1303 -e API_URL=https://api.xignature.co.id -e API_KEY=your-api-key -e ENV=PROD -e OTEL_SERVICE_NAME=xignature-prod registry.xignature.co.id/xignature/public-sign-gateway:2.1.0
Make sure container is running
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1c5300e6a24c registry.xignature.co.id/xignature/public-sign-gateway:2.1.0 "/bin/sh /app/run.sh" 57 minutes ago Up 57 minutes (healthy) 0.0.0.0:1303->1303/tcp, 7777/tcp sign-gateway
Remove Docker Container
docker rm -f sign-gateway