-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
141c8ab
commit 286ec12
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# docker run -d --name smartermail -e TZ=America/Phoenix -p 80:80 -p 443:443 -p 443:443/udp | ||
# -p 25:25 -p 110:110 -p 143:143 -p 465:465 -p 587:587 -p 993:993 -p 995:995 -p 5222:5222 | ||
# -v /path/to/data:/app/Data -v /path/to/systemdata:/app/SystemData smartertools/smartermail:latest | ||
|
||
[Unit] | ||
Description=Container service for SmarterMail | ||
Requires=network-online.target nss-lookup.target smartermail-network.service | ||
After=network-online.target nss-lookup.target smartermail-network.service | ||
|
||
[Container] | ||
ContainerName=%p | ||
Image=docker.io/library/smartermail:latest | ||
Volume=${CONTAINER_PATH}/files:/app/smartermail/Data:Z | ||
Volume=${CONTAINER_PATH}/files:/app/smartermail/SystemData:Z | ||
PublishPort=${WEB_PORT}:80 | ||
PublishPort=443:443 | ||
PublishPort=443:443/udp | ||
PublishPort=25:25 | ||
PublishPort=110:110 | ||
PublishPort=143:143 | ||
PublishPort=465:465 | ||
PublishPort=587:587 | ||
PublishPort=993:993 | ||
PublishPort=995:995 | ||
PublishPort=5222:5222 | ||
Network=smartermail-network | ||
AutoUpdate=registry | ||
|
||
[Service] | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=default.target | ||
|
||
# Version: '3.8' | ||
# | ||
# services: | ||
# smartermail: | ||
# image: smartertools/smartermail:latest | ||
# container_name: smartermail | ||
# environment: | ||
# - TZ=America/Phoenix | ||
# ports: | ||
# - "<fill in web port>:80" | ||
# - "<fill in web port>:443" | ||
# - "<fill in web port>:443/udp" | ||
# - "25:25" | ||
# - "110:110" | ||
# - "143:143" | ||
# - "465:465" | ||
# - "587:587" | ||
# - "993:993" | ||
# - "995:995" | ||
# - "5222:5222" | ||
# volumes: | ||
# - <Path on host>:/app/Data | ||
# - <Path on host>:/app/SystemData | ||
# restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Network] | ||
NetworkName=%N | ||
Subnet=172.16.209.0/24 | ||
IPv6=true |