# Docker & Kubernetes Samples

Essential container orchestration examples including Dockerfiles, Docker Compose, and Kubernetes manifests for modern application deployment

> Canonical page: https://elysiatools.com/en/samples/docker-kubernetes

- **Category:** DevOps

- **Keywords:** docker, kubernetes, k8s, container, orchestration, deployment, devops, microservices

## Overview

Essential container orchestration examples including Dockerfiles, Docker Compose, and Kubernetes manifests for modern application deployment

## Examples

- **Dockerfile for Node.js Application**: Production-ready Dockerfile for Node.js applications with multi-stage build and security best practices
- **Docker Compose - Web Application Stack**: Complete Docker Compose setup for a web application with database, Redis cache, and Nginx reverse proxy
- **Kubernetes Deployment Manifest**: Production-ready Kubernetes deployment with service, configmap, and ingress for containerized applications
- **Kubernetes StatefulSet for Database**: StatefulSet configuration for stateful applications like databases with persistent storage and network identity
- **Advanced Multi-Stage Docker Build**: Complex multi-stage Docker build for Go applications with separate build, test, and production stages

## When to use

- Use this sample set when you want reference inputs for Docker & Kubernetes Samples.
- Use it to preview output formats and compare related sample variants.

## How it works

- Open a sample entry to inspect the prepared example payload or asset.
- Compare it with related tools to understand how the workflow connects.

## Use cases

- Dockerfile for Node.js Application
- Docker Compose - Web Application Stack
- Kubernetes Deployment Manifest
- Kubernetes StatefulSet for Database
- Advanced Multi-Stage Docker Build

## Frequently asked questions

### What is included in Docker & Kubernetes Samples?

This page includes curated sample entries, related tools, and neighboring sample collections for Docker & Kubernetes Samples.

## Related tools

- [TOML / INI / HCL / .env / Nix / dotenv ⇄ Kubernetes ConfigMap & Secret Config Format Bridge](https://elysiatools.com/en/tools/toml-ini-hcl-envfile-nix-dotenv-kubernetes-configmap-secret-config-format-bridge): Convert configuration files between dotenv .env, TOML, INI, Java .properties, YAML, JSON, HCL (Terraform/Vagrant native syntax) and Nix attribute sets, and emit Kubernetes ConfigMap or Secret manifests. Template placeholders (${VAR}, {{var}}, envsubst) are preserved verbatim, type inference provenance (string/int/float/bool/list) is tracked, HCL block labels fold into nested keys, and a round-trip diff calls out non-equivalent settings — dropped keys, re-typed values and rewrites — instead of coercing them silently.
- [YAML File Merger](https://elysiatools.com/en/tools/yaml-merger): Merge multiple YAML files with various strategies (deep merge, overwrite, combine arrays, etc.)
- [Config File Semantic Diff](https://elysiatools.com/en/tools/config-file-semantic-diff): Compare JSON, YAML, TOML, and dotenv configurations by key path while ignoring ordering and formatting noise.
- [CSV Flavor to SQL INSERT Emitter](https://elysiatools.com/en/tools/csv-flavor-to-sql-insert-emitter): Parse CSV/Excel-CSV/TSV (auto dialect, RFC 4180) into MySQL/PostgreSQL/SQLite/SQL Server INSERT batches with type inference and ON CONFLICT/IGNORE
- [CSV to Database Migration Planner](https://elysiatools.com/en/tools/csv-to-database-migration-planner): Infer a relational schema from CSV data and generate create-table plus ALTER migration plans for PostgreSQL, MySQL, SQLite, or SQL Server
- [Database Backup Generator](https://elysiatools.com/en/tools/database-backup-generator): Generate SQL backup scripts for database tables
- [Database Migration Generator](https://elysiatools.com/en/tools/database-migration-generator): Generate SQL migration scripts for database schema changes
- [Database Schema Diff](https://elysiatools.com/en/tools/database-schema-diff): Compare two database schemas and generate migration-oriented change reports

## Related content

- [Kubernetes YAML Samples](https://elysiatools.com/en/samples/kubernetes-yaml): Complete Kubernetes YAML manifests for Deployment, Service, ConfigMap, Secret, Ingress and other essential resources
- [Grafana Advanced Application Samples](https://elysiatools.com/en/samples/grafana-samples): Comprehensive Grafana samples covering advanced dashboard design, alerting configurations, data source integrations, and plugin development
- [Docker Compose Samples](https://elysiatools.com/en/samples/docker-compose-samples): Docker Compose configuration examples for container orchestration and multi-service applications
- [Distributed Tracing Samples](https://elysiatools.com/en/samples/distributed-tracing-samples): Comprehensive distributed tracing examples using Jaeger, OpenTelemetry, and other modern observability tools for microservices architecture
- [Prometheus Monitoring](https://elysiatools.com/en/samples/prometheus): Comprehensive Prometheus monitoring and alerting system examples including custom metrics exporters, alert rule configuration, PromQL queries, and Grafana dashboard integration
- [Ansible Playbook Samples](https://elysiatools.com/en/samples/ansible-playbook): Complete Ansible playbook examples for automation, configuration management, and deployment
