forked from tiredofit/docker-postal
-
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.
Merge pull request #3 from siebsie23/postal_v3
Upgrade to postal v3
- Loading branch information
Showing
11 changed files
with
268 additions
and
224 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,25 @@ | ||
name: Build and test docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build docker image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
load: true | ||
tags: siebsie23/docker-postal:develop |
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
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
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
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,50 @@ | ||
# Upgrade guide for v2 to v3 | ||
|
||
To upgrade docker-postal from v2 to v3 there are a few small changes you have to make to your configuration. | ||
This is split into 2 taks. | ||
|
||
- Remove the RabbitMQ service from your docker-compose file. | ||
- Update environment variables to the new ones in place because of the updated postal configuration file. | ||
|
||
|
||
## Removing old containers | ||
Open your `docker-compose.yml` and remove the `postal-rabbitmq` service block from the yml file. | ||
If you are using the docker-compose example provided in this repository, all of the following should be removed: | ||
```yml | ||
postal-rabbitmq: | ||
container_name: postal-rabbitmq | ||
image: rabbitmq:3 | ||
environment: | ||
- RABBITMQ_DEFAULT_USER=postal | ||
- RABBITMQ_DEFAULT_PASS=password | ||
- RABBITMQ_DEFAULT_VHOST=/postal | ||
- CONTAINER_NAME=postal-rabbitmq | ||
networks: | ||
- services | ||
restart: always | ||
``` | ||
You can take a look at the updated [docker-compose.yml](examples/docker-compose.yml) in this repository as an example. | ||
## Updating environment variables | ||
Some existing variables have been updated, you should update them in your docker-compose.yml to prevent issues. | ||
If a variable has been removed, the table below will show it as a `-` | ||
|
||
| Old variable | New variable | | ||
| ----------------------------- | ------------------------------------- | | ||
| `DNS_HOSTNAME` | `DNS_HELO_HOSTNAME` | | ||
| `DNS_SPF` | `DNS_SPF_INCLUDE` | | ||
| `DNS_RETURN_PATH` | `DNS_RETURN_PATH_DOMAIN` | | ||
| `WORKERS_AMOUNT` | - | | ||
| - | `WEB_MAX_THREADS` | | ||
| `RABBITMQ_HOST` | - | | ||
| `RABBITMQ_VHOST` | - | | ||
| `RABBITMQ_USER` | - | | ||
| `RABBITMQ_PASS` | - | | ||
| `RABBITMQ_PORT` | - | | ||
| `SMTP_SERVER_HELO_HOSTNAME` | `SMTP_SERVER_HOSTNAME` | | ||
| `SMTP_SERVER_SSL_VERSION` | `SMTP_SERVER_TLS_SSL_VERSION` | | ||
| `WEB_BIND_IP` | `WEB_BIND_ADDRESS` | | ||
| `WEB_BIND_PORT` | `WEB_PORT` | | ||
| - | `WORKER_HEALTH_SERVER_BIND_ADDRESS` | | ||
| - | `WORKER_HEALTH_SERVER_PORT` | |
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
Oops, something went wrong.