DEV Community

Vuelancer
Vuelancer

Posted on

2 2 2 2 2

Podman - Create A FHIR-Server & SQL Server

Will update the blog regularly!!!

Introduction

This blog post will guide you through the process of setting up a FHIR server using Microsoft's FHIR server image and connecting it to a locally running SQL Server instance, all within a Podman container environment.

Prerequisites

  • Podman installed on your system
  • A running SQL Server instance with a FHIR database created

Create a Podman Machine

To provide a dedicated environment for your FHIR server, create a Podman machine:

podman machine init --name podman-machine --cpus 4 --memory 2GB --disk-size 100GB
Enter fullscreen mode Exit fullscreen mode

Replace the resource settings (--cpus, --memory, --disk-size) according to your system's capabilities and requirements.

Run the FHIR Server

Start the FHIR server container and connect it to your SQL Server database:

podman run --name my-fhir-server -e DATABASE_HOST=<your_host> -e DATABASE_PORT=<your_port> \
          -e DATABASE_NAME=FHIR -e DATABASE_USERNAME=<your_username> \
          -e DATABASE_PASSWORD=<your_password> microsoft/fhir-server
Enter fullscreen mode Exit fullscreen mode

Replace the placeholders with your SQL Server's host, port, database name, username, and password.

Explanation

  • --name my-fhir-server: Assigns a name to the container for easy management.
  • -e DATABASE_*: Sets environment variables to configure the FHIR server's connection to the SQL Server database.

Additional Considerations

  • Persistence: If you want to persist data beyond the container's lifetime, consider using a volume or a persistent volume claim.
  • Security: Implement appropriate security measures, such as network isolation and access control, to protect your FHIR server and database.
  • Configuration: Explore the FHIR server's configuration options to customize its behavior and features.

Conclusion

By following these steps, you've successfully set up a FHIR server using Microsoft's image and connected it to a SQL Server database within a Podman container environment. This provides a flexible and isolated way to manage your FHIR server and its dependencies.

API Trace View

Struggling with slow API calls?

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay