Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

update DB libs #44

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# You should always specify a full version here to ensure all of your developers
# are running the same version of Node.
FROM node:8.11.2
FROM node:12.16.3

# Override the base log level (info).
ENV NPM_CONFIG_LOGLEVEL warn
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,17 @@ Open .env with a text editor and adapt the environment variables with your
configuration:

* `MAILMAN_SECRET` a long unique random string to sign the JWT token
* `MAILMAN_DB_ENGINE` the engine used by mailman. defaults to maria if no value given.
* `MAILMAN_DB_ENGINE` the engine used by mailman. defaults to mysql (mariadb) if no value given.
* `MAILMAN_DB_SOCKET` the unix socket of the database
* `MAILMAN_DB_HOST` IP address or hostname of the database server; defaults to mariadb
* `MAILMAN_DB_PORT` the port the database listens on
* `MAILMAN_DB_USER` the `vmail` database user
* `MAILMAN_DB_PASSWORD` the password for the `vmail` database user
* `MAILMAN_DB_DATABASE` the `vmail` database
* `MAILMAN_HOST` the IP address which mailman binds to. Default is `0.0.0.0`
* `MAILMAN_PORT` the TCP port mailman binds to. Default is `4000`
* `MAILMAN_BASENAME` the HTTP base. Default is `/`
* `MAILMAN_ADMIN` the email address of the user, which is allowed to
administrate the `vmail` database
* `MAILMAN_ADMIN` the email address of the user, which is allowed to administrate the `vmail` database

---

Expand Down
18 changes: 16 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
version: '3'
services:

mariadb:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: "vmail"
MYSQL_DATABASE: "vmail"
MYSQL_USER: "vmail"
MYSQL_PASSWORD: "vmail"
volumes:
- database:/var/lib/mysql

web:
image: phiilu/mailman
build: .
ports:
- "4000:4000"
env_file:
- .env
network_mode: "host"
network_mode: "host"

volumes:
database:
Loading