🍂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:
All usernames will be
userunless setting it as such is impossibleAll passwords will be
passwordunless setting it as such is impossiblePersistence for data is enabled by default will be on local disk at a directory
./dataand will follow the image's recommended configuration pathConfiguration for services is done via environment variables as far as possible
Configuraton for services which have to be via file will be on local disk at a directory
./config/%SERVICE_NAME%/*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?