Member-only story
Application Development with Podman
Use Podman as a Docker alternative to set up a local development environment for a full-stack cloud-native application.
The source code for the sample application is available at the GitHub repository.
· Getting Started
∘ Installation
∘ Additional Configuration
· Configuration Files
∘ .env
∘ docker-compose.yml
· Database
∘ PostgreSQL
∘ Database Management
∘ Database Migration
· Caching using Redis
· Frontend Application
· Backend Application
· AWS Services using LocalStack
· Skipper
Getting Started
Docker requires a subscription to use. Though the Personal subscription is free, it comes with limitations. For example, we are limited to 200 image pulls per 6 hours. This article looks into Podman, a free and open-source tool that works seamlessly with containers and Kubernetes.
Installation
Podman is available for Linux, Mac, and Windows. Instructions to install are straightforward.
The following components should also be installed.
- Podman Compose is an implementation of Compose Spec with Podman backend.
- Podman Desktop is an open-source graphical tool that enables us to work with containers and Kubernetes from the local environment.
Additional Configuration
If you are behind a corporate proxy and the organization has its certificate authority (CA), you can install the certificates following the instructions.
Configuration Files
We will have to create several configuration files for our local development environment.
.env
The environment file contains variables that are required for the containers during run-time. For example…