mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-15 14:52:05 -05:00
[PR #1003] [MERGED] fix(automatisch): switch to official image and wire up DOMAIN to fix Bad Gateway #16311
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/1003
Author: @Siumauricio
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @Siumauricio
Base:
canary← Head:fix/automatisch📝 Commits (1)
3c416eafix(automatisch): switch to official image and wire up DOMAIN to fix Bad Gateway📊 Changes
3 files changed (+17 additions, -15 deletions)
View changed files
📝
blueprints/automatisch/docker-compose.yml(+15 -14)📝
blueprints/automatisch/meta.json(+1 -1)📝
blueprints/automatisch/template.toml(+1 -0)📄 Description
Problem
Issue #97 reports a persistent "Bad gateway" when opening the URL after deploying the base Automatisch template.
The original trigger (app listening on 443 while the domain targeted 3000) was patched in #470, but the template still had several defects that break or degrade fresh deploys:
dockeriddonuts/automatisch:2.0is a third-party mirror last pushed in Nov 2024 (Automatisch has no 2.x release — the tag is arbitrary). The official image isautomatischio/automatisch, currently0.15.0.${DOMAIN}was never defined: the compose references${DOMAIN}forHOST, buttemplate.tomlnever provided it, so it resolved empty and the app generatedhttp://localhost:3000URLs for the web app and webhooks.${PROTOCOL}://${HOST}:${PORT}, so even with a domain it producedhttp://<domain>:3000links behind Traefik.knex migrateat boot but only had a baredepends_on, so on slower servers it could hit Postgres before it accepts connections and crash-loop (which surfaces as Bad Gateway).Fix
automatischio/automatisch:0.15.0image.DOMAIN = "${main_domain}"to[config.env]and setAPI_URL/WEB_APP_URLtohttp://${DOMAIN}so generated URLs are correct behind the proxy.pg_isreadyhealthcheck on Postgres and gate the app onservice_healthy; the worker now starts after the main service (same ordering as the official compose).REDIS_*env vars on the Redis service.meta.jsonversion to0.15.0.Verification
Deployed on a Dokploy instance via template import:
donein 133s.automatisch,automatisch-worker,automatisch-postgres,automatisch-redis) running.HTTP 200and serves the Automatisch web app (no more Bad Gateway).Also verified with plain
docker compose uplocally: migrations run, seed user created, server listens on 3000 and answersHTTP 200from inside the network.node build-scripts/generate-meta.js --checkpasses (476 templates validated).Closes #97
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.