Update Dockerfile and docker-compose for config.json and Mailpit integration
This commit is contained in:
@@ -134,13 +134,13 @@ client address.
|
||||
## Dokploy
|
||||
|
||||
Use `docker-compose.dev.yml` as the Dokploy compose path for a self-contained
|
||||
backend deployment with MySQL and MailHog. Configure the public domain in
|
||||
Dokploy against service `backend` and container port `5555`.
|
||||
backend deployment with MySQL and a local SMTP catcher. Configure the public
|
||||
domain in Dokploy against service `backend` and container port `5555`.
|
||||
|
||||
Before deploying, create an Advanced Mount named `config.json` in Dokploy and
|
||||
paste the repository `config.json` content into it. The compose file mounts it
|
||||
from `../files/config.json` so AutoDeploy does not depend on bind mounts from a
|
||||
freshly cloned repository.
|
||||
The runtime image includes `config.json`; override environment-specific values
|
||||
with Dokploy environment variables. The SMTP catcher service keeps the internal
|
||||
name `mailhog` for compatibility, but uses the multi-architecture Mailpit image
|
||||
to avoid `exec format error` failures on ARM servers.
|
||||
|
||||
Set `MYSQL_PASSWORD`, `MYSQL_ROOT_PASSWORD` and any other environment-specific
|
||||
values in Dokploy environment variables.
|
||||
|
||||
Reference in New Issue
Block a user