From 7220281b70e2e5c9610d0c66ada5c17c8a87fd4e Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Tue, 21 Jan 2025 22:16:50 -0800 Subject: [PATCH] added sample mailu --- mailu/README.md | 4 ++++ mailu/docker-compose.yml | 47 ++++++++++++++++++++++++++++++++++++++++ mailu/sample-extends.yml | 0 mailu/sample.env | 0 4 files changed, 51 insertions(+) create mode 100644 mailu/README.md create mode 100644 mailu/docker-compose.yml create mode 100644 mailu/sample-extends.yml create mode 100644 mailu/sample.env diff --git a/mailu/README.md b/mailu/README.md new file mode 100644 index 0000000..3ebe2ec --- /dev/null +++ b/mailu/README.md @@ -0,0 +1,4 @@ +# Mailu + +https://mailu.io/2024.06/compose/setup.html + diff --git a/mailu/docker-compose.yml b/mailu/docker-compose.yml new file mode 100644 index 0000000..53e8538 --- /dev/null +++ b/mailu/docker-compose.yml @@ -0,0 +1,47 @@ +services: + mailu: + image: mailu/mailu:2024.06 + restart: always + ports: + - "25:25" / "110:110" + - "587:587" + volumes: + - ${VOL_PATH}/mailu-data:/var/mailu + - ${VOL_PATH}/domain.conf:/etc/mailu/domain.conf + + postfix: + image: postfix + restart: always + ports: + - "25:25" + - "587:587" + volumes: + - ${VOL_PATH}/postfix-config:/etc/postfix/ + - ${VOL_PATH}/domain.conf:/etc/postfix/main.cf + + dovecot: + image: dovecot + restart: always + ports: + - "25/3:25/3" + - "110/3:110/3" + - "587/3:587/3" + volumes: + - ${VOL_PATH}/dovecot-config:/etc/dovecot/ + + mailu-database: + image: postgres + restart: always + environment: + - POSTGRES_USER=mailu + - POSTGRES_PASSWORD=mypassword + - POSTGRES_DB=mailu + volumes: + - ${VOL_PATH}/db-data:/var/lib/postgresql/data + + mailu-web: + image: nginx + restart: always + volumes: + - ${VOL_PATH}/nginx.conf:/etc/nginx/conf.d/default.conf + - ${VOL_PATH}/certs:/etc/nginx/certs diff --git a/mailu/sample-extends.yml b/mailu/sample-extends.yml new file mode 100644 index 0000000..e69de29 diff --git a/mailu/sample.env b/mailu/sample.env new file mode 100644 index 0000000..e69de29