EDI API Server Installation
The API server installation involves “pulling” and running its docker container from our Docker registry.
The API server consists of only one container, it does not need a database. The container is completely stateless, you don’t need to create and manage volumes.
This makes it easy to run multiple instances of the API Server and scale it up/down depending on your workload.
If you prefer not to use Docker, you can install the API Server as a service directly. The API Server is a Java/SpringBoot application, so you will need to install Java and configure running the API Server as a service.
Installing and Running API Server with Docker Compose
On Linux you may need to run
sudo
for all docker commands.
- Create a new folder (e.g., “edi”), download
docker-compose.yml
file from this link and copy it into this folder - Navigate to the folder where you saved the
docker-compose.yml
- Create the
etc
folder. Copy the license file toetc
. You can request your trial license here. - Run
docker compose pull
. This will ensure that you have the latest image. - Run
docker compose up -d
.
On Linux/macOS:
mkdir edi
cd edi
mkdir etc
# Copy the license file from the location you downloaded it to
cp edi-license.bin etc
wget https://datainsight.health/edi-convert/docker-compose.yml
docker compose pull
docker compose up -d
docker compose logs
The default port for the container is 5080, you can change it in docker-compose.yml.
To stop the service, run docker compose down
.
To view the logs, run docker compose logs -f
License Key as Environment Variable
You can specify your license key using the LICENSE_KEY
environment variable instead of using the license key file. This obviates the need for persistent volumes and makes deployment to Kubernetes easier to manager.
Initial Tests to Verify the Installation
To verify that the server is running, open http://localhost:5080/api/about or run this command:
curl http://localhost:5080/api/about
You may also want to convert a test EDI file. You can many sample files in our GitHub repo.
Download any of the files and run:
curl -H "Content-Type: text/plain" --data-binary @<your file> http://localhost:5080/api/edi/json