Skip to content

Commit

Permalink
Merge pull request #672 from xiliuya/docs/docker/465-port
Browse files Browse the repository at this point in the history
docs: fix docker command not open 465
  • Loading branch information
foxcpp authored Jan 29, 2024
2 parents 394bc9e + 65bfb1b commit 1708895
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ To run management commands, create a temporary container with the same
/data directory and put the command after the image name, like this:

```
docker run --rm -it -v maddydata:/data foxcpp/maddy:0.6.0 creds create foxcpp@maddy.test
docker run --rm -it -v maddydata:/data foxcpp/maddy:0.6.0 imap-acct create foxcpp@maddy.test
docker run --rm -it -v maddydata:/data foxcpp/maddy:0.7 creds create foxcpp@maddy.test
docker run --rm -it -v maddydata:/data foxcpp/maddy:0.7 imap-acct create foxcpp@maddy.test
```

Use the same image version as the running server. Things may break badly
Expand All @@ -65,9 +65,10 @@ docker run \
-v maddydata:/data \
-p 25:25 \
-p 143:143 \
-p 465:465 \
-p 587:587 \
-p 993:993 \
foxcpp/maddy:0.6
foxcpp/maddy:0.7
```

It will fail on first startup. Copy TLS certificate to /data/tls/fullchain.pem
Expand Down

0 comments on commit 1708895

Please sign in to comment.