postfix README
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
dockermgr update postfix
mkdir -p "$HOME/.local/share/srv/docker/postfix/rootfs"
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/rootfs/"
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/rootfs/data:/data" \
-v "$HOME/.local/share/CasjaysDev/dockermgr/postfix/rootfs/config:/config" \
-p 25:25 \
casjaysdevdocker/postfix:latest
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/rootfs/data:/data"
- "$HOME/.local/share/CasjaysDev/dockermgr/postfix/rootfs/config:/config"
environment:
- "HOSTNAME=$HOSTNAME"
- "DOMAINS=example.com,example2.com"
dockermgr download src casjaysdevdocker/postfix
OR
git clone "https://github.com/casjaysdevdocker/postfix" "$HOME/Projects/github/casjaysdevdocker/postfix"
cd "$HOME/Projects/github/casjaysdevdocker/postfix"
buildx