Commit Graph
17878 Commits
Author SHA1 Message Date
Andras Bacsai 6099c0b4a3 fix(service): repair forgejo templates and enable forgejo with runner
- Database variants: use the same database name in Forgejo and the database
  container (`forgejo` by default); Postgres stayed unhealthy and MySQL/MariaDB
  installs failed with access denied.
- SSH: publish ${FORGEJO_SSH_PORT:-22222} and set SSH_PORT, DOMAIN and
  SSH_DOMAIN, so clone URLs are correct and several instances fit on a server.
- Runner variants: start Forgejo from /usr/bin/s6-svscan, lock the install
  with a generated admin, register runner 13.2.0 with a generated shared
  secret, and enable the templates.

Closes #11924
2026-10-18 12:45:49 +02:00
Andras Bacsai 34b3a18307 fix(compose): resolve ../ bind sources in raw compose mode
oldRawParser made the bind directory of a long-syntax source like
../data at {workdir}./data, next to the path that Docker Compose uses.
Resolve the source with replaceLocalSource(), as the compose parsers do,
so Coolify makes the directory that the container mounts. A source that
resolves above / now stops the deployment before remote work.

Closes #4055
2026-10-18 12:09:42 +02:00
Andras Bacsai 6d4551faec test(parsers): add golden tests for the compose parsers
ServiceParserReferenceTest parses reference fixtures for serviceParser and
applicationParser (one service per feature, with setting variations and error
cases) and every template, and compares the output with expected files.
scripts/parser-snapshot-diff shows how a code change alters the output of all
cases (save / baseline). Template expected files are gitignored.
2026-10-18 11:29:39 +02:00
Andras Bacsai fc4562ede7 fix(services): treat SERVICE_FQDN_ twin as a copy of SERVICE_URL_ declaration
A service that declares SERVICE_FQDN_X_PORT while the named service declares
SERVICE_URL_X_PORT (same value) now counts as a copy, like an exact copy, so it
does not take the named service's domain. Also replace the Postgres-only
regex in the magic variable loop with the same check in PHP.
2026-10-18 11:29:39 +02:00
Andras BacsaiandClaude Opus 5.5 4e7d73e6e2 fix(webhooks): save manual webhook secret when generated
Generate now stores the new secret at once. The unsaved bar compares
fields with the saved secrets, so other drafts stay marked as unsaved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 11:24:52 +02:00
Andras Bacsai 6964714b5d fix(api): persist service URLs set via API across compose re-parse
Call updateCompose() after saving an application's fqdn in the services
API urls handler so the domain is written back to the compose file.
Without this, StartService re-parsing the compose before deploy would
drop the domain and its SERVICE_URL_*/SERVICE_FQDN_* variables.

Add a feature test covering persistence after a second parse.
2026-10-16 23:05:31 +02:00
Andras Bacsai 38e191dca6 fix(service): update appwrite to 2.5.0 and route api and realtime to port 80
The template port 3003 sent API and realtime traffic to a port that the
containers do not listen on (502). Use port 80 as upstream does, update
images and env to the official 2.5.0 compose, drop the removed assistant
service, and default _APP_OPTIONS_FORCE_HTTPS to disabled (upstream
default) so installs on http domains reach the API.
2026-10-16 23:05:10 +02:00
Andras Bacsai 699cd361b4 fix(services): keep SERVICE_URL_* on the named service domain
When a compose service copies another service's SERVICE_URL_/SERVICE_FQDN_
declaration (old Twenty template: worker repeats SERVICE_URL_TWENTY_3000),
the parser and updateCompose wrote the variable from the copier's generated
domain, so a custom domain on the named service was lost on every deploy.
Skip exact copies; declarations with another path or port are unchanged.

Closes #11924
2026-10-16 23:05:06 +02:00
Andras BacsaiandClaude Opus 5.5 35d4888c1a test: consolidate webhook repository URL tests and cover compose location save
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:41:15 +02:00
Andras BacsaiandClaude Opus 5.5 3aa6ff1fdd fix(ui): let the desktop sidebar scroll on short screens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:41:15 +02:00
Andras BacsaiandClaude Opus 5.5 449d099bd3 fix(backups): accept tar exit code 1 in volume backups
GNU tar exits with 1 when a file changes while it is read. The archive
is still valid, so only exit codes above 1 fail the backup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:41:15 +02:00
Andras Bacsai 44774f7b93 fix(service): update hermes agent and webui template images
Closes #11410
2026-10-16 21:48:29 +02:00
Andras BacsaiandClaude Opus 5.5 21dc34ae61 fix(scheduler): spread CDN update checks over a random delay
All instances share the same default update cron, so they request the
CDN at the same second and Cloudflare rejects the burst (error 1200).
Queue the CDN fetching jobs with a random 0-600s delay to spread the load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:38:39 +02:00
Andras BacsaiandClaude Opus 5.5 154b50647e test(deployments): cover large compose write over SSH stdin
Closes #11737

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:35:54 +02:00
Andras Bacsai a052a72923 test(git): cover deploy key setup with custom ssh username
Closes #11665
2026-10-16 21:35:19 +02:00
Andras Bacsai b5e1995cac fix(services): link Website button to project page, not host root
Closes #11752
2026-10-16 21:35:02 +02:00
Andras BacsaiandClaude Opus 5.5 ed8271eb9f fix(scheduled-tasks): skip a run while the previous run is still running
- Add a per-task overlap lock to ScheduledTaskJob that outlives the worker
  timeout, so a long or killed run cannot overlap the next cron run.
- Mark the dropped occurrence as skipped instead of releasing the job.

Closes #11648

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:34:40 +02:00
Andras Bacsai 528754043e fix(api-tokens): allow token creation for MCP when REST API is disabled
Closes #11281
2026-10-16 21:29:51 +02:00
Andras Bacsai 412e0e5863 docs(watch-paths): state that patterns are one per line
Closes #11323
2026-10-16 21:28:57 +02:00
Andras Bacsai 492b174767 fix(github): route webhooks to the source of their app installation
Closes #11271
2026-10-16 21:28:40 +02:00
Andras BacsaiandClaude Opus 5.5 4ce231702e fix(service): skip the predefined network connect for connected containers
A single service deploy with an unchanged config keeps the running
container, which is already on the network. The connect then logged a
false "already exists" error and a warning. Check the container's
networks first.

Closes #11295

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:28:38 +02:00
Andras Bacsai 0e3b6e5aa6 fix(databases): apply custom configs on servers with a strict umask
A custom config file written with tee gets the server umask. With umask
027 or 077 the file is not readable by the container user, so MySQL and
MariaDB ignored the whole config without an error.

- Set mode 644 on the MySQL, MariaDB, PostgreSQL, and MongoDB custom
  config files after each write.
- Close the multiplexed SSH connection when the server user, IP, or port
  changes, so the next command does not run as the old user.

Closes #11600
2026-10-16 21:28:21 +02:00
Andras Bacsai 47535d2cab fix(webhooks): show GitLab webhook setup for GitLab App sources
Closes #11602
2026-10-16 21:21:22 +02:00
Andras Bacsai 420692c020 fix(upgrade): keep Coolify running when Docker reports IPv6 gateways with a prefix
Docker Engine 27.0 to 28.0.0 reports an IPv6 network gateway with its
prefix length (fd00::1/64) until the daemon restarts (moby/moby#49520).
The Docker CLI 29 and Compose 5 in the helper image reject it, so
deployments failed and the upgrade left Coolify stopped.

- Stop the upgrade before it changes containers when the coolify network
  has such a gateway, and tell the user to restart or upgrade Docker.
- Create a new coolify network again without IPv6 when Docker reports
  its gateway with a prefix.
- Report an error, not "Upgrade complete", when the new Coolify
  containers do not start.
- Add the fix to deployment errors that contain this ParseAddr failure.

Fixes #11583
2026-10-16 21:19:35 +02:00
Andras Bacsai f1f7d5269e fix(docker-cleanup): fail executions orphaned by a killed worker
Closes #11643
2026-10-16 21:17:48 +02:00
Andras Bacsai 65c4c430fc fix(dashboard): stop unreachable servers from blocking metrics charts
Closes #11629
2026-10-16 21:17:20 +02:00
Andras BacsaiandClaude Opus 5.5 69e448dac9 fix(installer): do not restart Docker with running containers
Merge log rotation and the network pool into the existing daemon.json
instead of overwriting it. Skip the change and the Docker restart when
containers are running, unless DOCKER_POOL_FORCE_OVERRIDE=true.

Closes #11221

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:10:35 +02:00
Andras BacsaiandClaude Opus 5.5 9809d6b445 fix(service): connect containers to the predefined network before they start
Create the containers with --no-start, connect them to the destination
network, then start them. A container that crashed before the late
connect was restarting, the connect failed silently, and it never
joined the network.

Closes #11371

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:07:52 +02:00
Andras Bacsai 0607705d70 fix(teams): keep switched team when concurrent requests save the session
Closes #11733
2026-10-16 21:07:00 +02:00
Andras Bacsai 12a8fb83fd fix(backups): show exact execution times in backup tables
Closes #11316
2026-10-16 21:05:38 +02:00
Andras BacsaiandClaude Opus 5.5 a5acf81751 fix(scheduled-tasks): stop 404 after deleting a scheduled task
The executions list polled with the task stored as a model, so a poll
after the delete failed to load it and showed a 404. Load the task by id
on each request and skip the refresh when it is gone. Return true from
delete so the confirmation modal does not refresh the deleted task.

Closes #11814

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:32:13 +02:00
Andras Bacsai 4475273c8a fix(backups): restore sorting on storage backup tables
Closes #11815
2026-10-16 00:32:00 +02:00
Andras Bacsai 1f08c62564 Merge remote-tracking branch 'origin/main' 2026-10-16 00:27:17 +02:00
Andras BacsaiandClaude Opus 5.5 ef0108e8aa fix(ui): stop Firefox tab restore from switching theme to custom
Closes #11813

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:24:26 +02:00
Andras BacsaiandClaude Opus 5.5 ea483d179b feat(settings): add Detect button for instance public IPs
Closes #11802

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:24:13 +02:00
Andras BacsaiandClaude Opus 5.5 f5c88f7e4f fix(deploy): do not pull locally built compose images before stop
Skip the pre-stop pull when a custom build command runs without a build server, and pull only services whose image does not come from a build, including services that reuse the image of a build service.

Closes #11773

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:19:17 +02:00
Andras Bacsai 801274f5bb fix(settings): explain that S3 images are served through Coolify without a CDN URL
The Image CDN URL help text said an empty value uses the S3 endpoint.
Since #11865, an empty value serves profile pictures and project icons
through Coolify, because private buckets and Cloudflare R2 reject
anonymous browser requests (#11806).
2026-10-16 00:18:51 +02:00
Saim Hashmi d712afbc04 fix(media): stop building unauthenticated public URLs for S3-compatible avatars/icons (#11865) 2026-10-16 00:18:36 +02:00
Andras Bacsai b15f15f22d fix(ui): keep update badge inside the sidebar brand area
Closes #11801
2026-10-16 00:17:10 +02:00
Andras BacsaiandClaude Opus 5.5 70d4dad494 fix(settings): keep manually set instance public IPs on restart
Closes #11802

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:16:20 +02:00
Andras BacsaiandClaude Opus 5.5 97f451cc2a fix(installer): change data directories only after checks and downloads
install.sh created the resource directories and ran chown -R and
chmod -R on source, ssh, and images before step 1. When a check or a
CDN download failed, the changed owners and modes stayed although
nothing was installed.

Create only /data/coolify and source (for the log and the downloads)
at the start. Create the other directories and set the permissions in
the SSH key step, after the checks and downloads succeed.

Closes #11973

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:09:47 +02:00
Andras Bacsai 6785c08961 fix(ui): add close() to table dropdown so options do not call window.close()
Closes #11869
2026-10-16 00:09:21 +02:00
Andras Bacsai f5ead3ed43 fix(mcp): enforce allowed IPs on the MCP endpoint
Closes #11881
2026-10-15 23:41:17 +02:00
Andras Bacsai 31cb4c9039 fix(ui): open status dropdowns from the left edge in stacked headers
Closes #11947
2026-10-15 23:40:24 +02:00
Andras BacsaiandClaude Opus 5.5 6b3f60c7d6 fix(docker): ship versions.json in production image
Closes #11868

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:38:06 +02:00
Andras Bacsai 12fd9e448b fix(upgrade): retry rate limited image pulls and spread auto updates
Closes #11890
2026-10-15 23:36:47 +02:00
Andras BacsaiandClaude Opus 5.5 3414b88e0d fix(applications): ignore missing health on additional server status
Closes #11892

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:33:52 +02:00
Andras Bacsai d60d3a5b9d fix(service): replace removed MinIO images with pgsty/silo
Closes #11975
2026-10-15 23:32:06 +02:00
Andras BacsaiandClaude Opus 5.5 53b5e63b9d fix(service): auto-verify signups and fix database name in hatchet template
Hatchet leaves new signups unverified unless SMTP is set up, which
blocked users after signup. Default SERVER_AUTH_SET_EMAIL_VERIFIED to
true so operators can still opt out.

DATABASE_URL used $POSTGRES_DB without a default, so fresh deploys
connected to a database named after the user and the migration failed.
Also align setup-config volume names with the other services.

Closes #12106

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:30:10 +02:00
Andras BacsaiandClaude Opus 5.5 3fbb8da5ff fix(service): add seadoc server to seafile template for wikis
Closes #11976

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:27:15 +02:00