🍂Docker Compose Services

This page provides YAML configurations for services I often use via a Docker Compose file usually as part of bringing up a development enviornment.

Overview

Some overarching rules for the following manifests are:

  1. All usernames will be user unless setting it as such is impossible

  2. All passwords will be password unless setting it as such is impossible

  3. Persistence for data is enabled by default will be on local disk at a directory ./data and will follow the image's recommended configuration path

  4. Configuration for services is done via environment variables as far as possible

  5. Configuraton for services which have to be via file will be on local disk at a directory ./config/%SERVICE_NAME%/*

  6. Ports will always be forwarded from container to host AS-IS, this means if you have another instance of the same service running locally, the port will fail to listen on the host network. Configure as needed

Services

Alpine

version: "3.7"
services:
  alpine:
    # image reference: https://hub.docker.com/_/alpine
    image: library/alpine:3.13.5
    entrypoint: ["sleep", "1000000"]

MongoDB

MySQL

PostgreSQL

NATS

Nginx

Redis

Sample Redis 6 configuration file

Rundeck

Last updated

Was this helpful?