mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
15e262b043
- make it easier to run with an existing webserver. the quickstart now has a new option for that, it generates a different mox.conf, and further instructions such as configuring the tls keys/certs and reverse proxy urls. and changes to make autoconfig work in that case too. - when starting up, request a tls cert for the hostname and for the autoconfig endpoint. the first will be requested soon anyway, and the autoconfig cert is needed early so the first autoconfig request doesn't time out (without helpful message to the user by at least thunderbird). and don't request the certificate before the servers are online. the root process was now requesting the certs, before the child process was serving on the tls port. - add examples of configs generated by the quickstart. - enable debug logging in config from quickstart, to give user more info. for issue #5
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
# Before launching mox, run the quickstart to create config files for running as
|
|
# user the mox user (create it on the host system first, e.g. "useradd -d $PWD mox"):
|
|
#
|
|
# mkdir config data web
|
|
# docker-compose run mox mox quickstart you@yourdomain.example $(id -u mox)
|
|
#
|
|
# After following the quickstart instructions you can start mox:
|
|
#
|
|
# docker-compose up
|
|
|
|
version: '3.7'
|
|
services:
|
|
mox:
|
|
# Replace latest with the version you want to run.
|
|
image: docker.io/moxmail/mox:latest
|
|
environment:
|
|
- MOX_DOCKER=yes # Quickstart won't try to write systemd service file.
|
|
# Mox needs host networking because it needs access to the IPs of the
|
|
# machine, and the IPs of incoming connections for spam filtering.
|
|
network_mode: 'host'
|
|
volumes:
|
|
- ./config:/mox/config
|
|
- ./data:/mox/data
|
|
# web is optional but recommended to bind in, useful for serving static files with
|
|
# the webserver.
|
|
- ./web:/mox/web
|
|
working_dir: /mox
|
|
restart: on-failure
|
|
healthcheck:
|
|
test: netstat -nlt | grep ':25 '
|
|
interval: 1s
|
|
timeout: 1s
|
|
retries: 10
|