Files
postfix/README.md
T
jason 9ea0d5ac74 🗃️ readme: rename rootfs/ to volumes/ for compose context 🗃️
Aligns README install/run snippets with the new convention split:
rootfs/ for Dockerfile-build content (image filesystem), volumes/
for docker-compose host bind-mounts. Compose mounts, host bind
paths, and runtime data dirs are renamed; Dockerfile COPY/ADD
sources (where present) are preserved.

README.md
2026-05-05 14:35:45 -04:00

2.0 KiB

👋 Welcome to postfix 🚀

postfix README

Install my system scripts

 sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
 sudo systemmgr --config && sudo systemmgr install scripts  

Automatic install/update

dockermgr update postfix

Install and run container

mkdir -p "$HOME/.local/share/srv/docker/postfix/volumes"
git clone "https://github.com/dockermgr/postfix" "$HOME/.local/share/CasjaysDev/dockermgr/postfix"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/postfix/rootfs/." "$HOME/.local/share/srv/docker/postfix/volumes/"
docker run -d \
  --name casjaysdevdocker-postfix-latest \
  --hostname $HOSTNAME \
  -e "HOSTNAME=$HOSTNAME" \
  -e "DOMAINS=example.com,example2.com" \
  -v "$HOME/.local/share/CasjaysDev/dockermgr/postfix/volumes/data:/data" \
  -v "$HOME/.local/share/CasjaysDev/dockermgr/postfix/volumes/config:/config" \
  -p 25:25 \
  casjaysdevdocker/postfix:latest

via docker-compose

version: '3.9'
services:
    postfix:
        privileged: true
        hostname: $HOSTNAME
        image: 'casjaysdevdocker/postfix:latest'
        container_name: casjaysdevdocker-postfix-latest
        ports:
            - '25:25'
        volumes:
            - "$HOME/.local/share/CasjaysDev/dockermgr/postfix/volumes/data:/data"
            - "$HOME/.local/share/CasjaysDev/dockermgr/postfix/volumes/config:/config"
        environment:
            - "HOSTNAME=$HOSTNAME"
            - "DOMAINS=example.com,example2.com"

Get source files

dockermgr download src casjaysdevdocker/postfix

OR

git clone "https://github.com/casjaysdevdocker/postfix" "$HOME/Projects/github/casjaysdevdocker/postfix"

Build container

cd "$HOME/Projects/github/casjaysdevdocker/postfix"
buildx 

Authors

🤖 casjay: Github 🤖
casjaysdevdocker: Github Docker