An open API service indexing awesome lists of open source software.

https://github.com/griffindeetox/docker-mini

This repository is designed as a lightweight, practical introduction to using Docker for modern development and deployment workflows. Whether you are just starting out or need a concise sandbox for testing Docker concepts, docker-mini is the perfect starting point.
https://github.com/griffindeetox/docker-mini

docker github github-actions javascript redis

Last synced: 3 months ago
JSON representation

This repository is designed as a lightweight, practical introduction to using Docker for modern development and deployment workflows. Whether you are just starting out or need a concise sandbox for testing Docker concepts, docker-mini is the perfect starting point.

Awesome Lists containing this project

README

          

![CI](https://github.com/Griffindeetox/docker-mini/actions/workflows/ci.yml/badge.svg)

# docker-mini (Node + Redis via Docker Compose)

A tiny service that demonstrates container best practices:
- Multi-stage Dockerfile with **non-root** user
- Container **HEALTHCHECK** hitting `/health`
- **Redis** sidecar + **named volume** for persistence
- Simple stateful endpoint: `/incr`

## Run locally
```bash
docker compose up -d --build
curl -s http://localhost:3000/health # {"status":"ok"}
curl -s http://localhost:3000/incr # {"counter":1}