A minimal example for a Docker container and how to deploy it https://minimal-docker.fsfe.org
Go to file Use this template
Irakli Maisuradze b9c09b4e3f
All checks were successful
continuous-integration/drone/push Build is passing
Merge pull request 'Update docker Docker tag to v27.3.0' (#23) from renovate/docker-27.x into main
Reviewed-on: #23
2024-09-20 07:32:00 +00:00
docs Minor modifications 2023-01-05 12:12:51 +01:00
LICENSES provide README 2022-01-14 14:51:41 +01:00
.drone.yml Update docker Docker tag to v27.3.0 2024-09-20 00:34:24 +00:00
docker-compose.yml added logrotation 2024-08-21 12:56:49 +02:00
Dockerfile Update bitnami/python Docker tag to v3.11 2023-06-10 00:33:28 +00:00
README.md Minor modifications 2023-01-05 12:12:51 +01:00
renovate.json bump drone image 2023-11-05 15:17:27 +01:00
renovate.json.license make REUSE compliant 2023-06-08 14:59:30 +02:00
webserver.py initial commit 2022-01-14 14:37:43 +01:00

Minimal Docker example

in docs.fsfe.org Build Status REUSE status

This repo contains a rather minimalistic example of how a Docker service can look like in our infrastructure. It also shows how it's deployed via Drone.

It complements the technical documentation on Docker deployments for the FSFE System Hackers.

Important files

  • .drone.yml is picked up by our Drone CI, and executes the listed steps:
    • Check REUSE compliance
    • Run docker-compose to deploy the Docker container as defined, and only in defined events
    • On a defined docker host
    • For a rootless Docker environment
  • docker-compose.yml defines which containers are going to be started, and how they are described.
    • In this example very simple: building a Docker image based on the Dockerfile
    • It also exposes ports to the host and sets labels that allow our reverse proxy to channel incoming requests to the container
  • Dockerfile defines the layers of the Docker image minimaldocker that will be deployed.
    • Based on a well-maintained Python image
    • Running a very simple webserver that echoes HTTP requests