commit
c22c25d623
|
@ -1 +1,2 @@
|
||||||
|
.github
|
||||||
test/
|
test/
|
||||||
|
|
12
README.md
12
README.md
|
@ -88,13 +88,13 @@ Minimum:
|
||||||
|
|
||||||
### Get the tools
|
### Get the tools
|
||||||
|
|
||||||
Download the `docker-compose.yml`, `.env`, `env-mailserver` and the `setup.sh` files:
|
Download the `docker-compose.yml`, `compose.env`, `mailserver.env` and the `setup.sh` files:
|
||||||
|
|
||||||
``` BASH
|
``` BASH
|
||||||
wget https://raw.githubusercontent.com/tomav/docker-mailserver/master/setup.sh
|
wget https://raw.githubusercontent.com/tomav/docker-mailserver/master/setup.sh
|
||||||
wget https://raw.githubusercontent.com/tomav/docker-mailserver/master/docker-compose.yml
|
wget https://raw.githubusercontent.com/tomav/docker-mailserver/master/docker-compose.yml
|
||||||
wget https://raw.githubusercontent.com/tomav/docker-mailserver/master/env-mailserver
|
wget https://raw.githubusercontent.com/tomav/docker-mailserver/master/mailserver.env
|
||||||
curl -o .env https://raw.githubusercontent.com/tomav/docker-mailserver/master/template.env
|
curl -o .env https://raw.githubusercontent.com/tomav/docker-mailserver/master/compose.env
|
||||||
|
|
||||||
chmod a+x ./setup.sh
|
chmod a+x ./setup.sh
|
||||||
```
|
```
|
||||||
|
@ -102,14 +102,14 @@ chmod a+x ./setup.sh
|
||||||
### Create a docker-compose environment
|
### Create a docker-compose environment
|
||||||
|
|
||||||
- [Install the latest docker-compose](https://docs.docker.com/compose/install/)
|
- [Install the latest docker-compose](https://docs.docker.com/compose/install/)
|
||||||
- Edit the files `.env` and `env-mailserver` to your liking:
|
- Edit the files `.env` and `mailserver.env` to your liking:
|
||||||
- `.env` contains the configuration for docker-compose
|
- `.env` contains the configuration for docker-compose
|
||||||
- `env-mailserver` contains the configuration for the mailserver container
|
- `mailserver.env` contains the configuration for the mailserver container
|
||||||
- These files supports only simple `VAR=VAL` lines (see [Documentation](https://docs.docker.com/compose/env-file/)).
|
- These files supports only simple `VAR=VAL` lines (see [Documentation](https://docs.docker.com/compose/env-file/)).
|
||||||
- Don't quote your values.
|
- Don't quote your values.
|
||||||
- Variable substitution is *not* supported (e.g. `OVERRIDE_HOSTNAME=$HOSTNAME.$DOMAINNAME`).
|
- Variable substitution is *not* supported (e.g. `OVERRIDE_HOSTNAME=$HOSTNAME.$DOMAINNAME`).
|
||||||
|
|
||||||
**Note:**: Variables in `.env` are expanded in the `docker-compose.yml` file **only** and **not** in the container. The file `env-mailserver` serves this case where environment variables are used in the container.
|
**Note:**: Variables in `.env` are expanded in the `docker-compose.yml` file **only** and **not** in the container. The file `mailserver.env` serves this case where environment variables are used in the container.
|
||||||
|
|
||||||
**Note:** If you want to use a bare domain (host name equals domain name) see [FAQ](https://github.com/tomav/docker-mailserver/wiki/FAQ-and-Tips#can-i-use-nakedbare-domains-no-host-name).
|
**Note:** If you want to use a bare domain (host name equals domain name) see [FAQ](https://github.com/tomav/docker-mailserver/wiki/FAQ-and-Tips#can-i-use-nakedbare-domains-no-host-name).
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# –––––––––––––––––––––––––––––––––––––––––––––––
|
||||||
|
# ––– Docker Compose Settings Variables –––––––––
|
||||||
|
# –––––––––––––––––––––––––––––––––––––––––––––––
|
||||||
|
|
||||||
|
HOSTNAME=mail
|
||||||
|
DOMAINNAME=domain.com
|
||||||
|
CONTAINER_NAME=mail
|
|
@ -17,8 +17,7 @@ services:
|
||||||
- maillogs:/var/log/mail
|
- maillogs:/var/log/mail
|
||||||
- ./config/:/tmp/docker-mailserver/
|
- ./config/:/tmp/docker-mailserver/
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- mailserver.env
|
||||||
- env-mailserver
|
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
# –––––––––––––––––––––––––––––––––––––––––––––––
|
||||||
# -----------------------------------------------------------------------------------------------------------------------------
|
# ––– Mailserver Environment Variables ––––––––––
|
||||||
# --------------------- General Settings --------------------------------------------------------------------------------------
|
# –––––––––––––––––––––––––––––––––––––––––––––––
|
||||||
# -----------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# empty => uses the `hostname` command to get the mail server's canonical hostname
|
# empty => uses the `hostname` command to get the mail server's canonical hostname
|
||||||
# => Specify a fully-qualified domainname to serve mail for. This is used for many of the config features so if you can't set your hostname (e.g. you're in a container platform that doesn't let you) specify it in this environment variable.
|
# => Specify a fully-qualified domainname to serve mail for. This is used for many of the config features so if you can't set your hostname (e.g. you're in a container platform that doesn't let you) specify it in this environment variable.
|
|
@ -1,7 +0,0 @@
|
||||||
# -----------------------------------------------------------------------------------------------------------------------------
|
|
||||||
# --------------------- General Settings --------------------------------------------------------------------------------------
|
|
||||||
# -----------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
HOSTNAME=mail
|
|
||||||
DOMAINNAME=domain.com
|
|
||||||
CONTAINER_NAME=mail
|
|
Loading…
Reference in New Issue