Skip to content

Commit 1b60fd3

Browse files
authored
Merge pull request #5633 from nurdism/main
Fix: Docker Cleanup stuck on "In Progress"
2 parents 151b4b6 + 7d698fa commit 1b60fd3

File tree

2 files changed

+134
-73
lines changed

2 files changed

+134
-73
lines changed

CHANGELOG.md

+133-72
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,77 @@ All notable changes to this project will be documented in this file.
44

55
## [unreleased]
66

7+
### 🐛 Bug Fixes
8+
9+
- *(parser)* Transform associative array labels into key=value format for better compatibility
10+
- *(redis)* Update username and password input handling to clarify database sync requirements
11+
- *(source)* Update connected source display to handle cases with no source connected
12+
13+
### 🚜 Refactor
14+
15+
- *(source)* Conditionally display connected source and change source options based on private key presence
16+
17+
### ⚙️ Miscellaneous Tasks
18+
19+
- *(versions)* Bump coolify version to 4.0.0-beta.409 in configuration files
20+
21+
## [4.0.0-beta.408] - 2025-04-14
22+
723
### 🚀 Features
824

9-
- *(EnvironmentVariable)* Add handling for Redis credentials in the environment variable component
10-
- *(EnvironmentVariable)* Implement protection for critical environment variables and enhance deletion logic
11-
- *(Application)* Add networkAliases attribute for handling network aliases as JSON or comma-separated values
25+
- *(OpenApi)* Enhance OpenAPI specifications by adding UUID parameters for application, project, and service updates; improve deployment listing with pagination parameters; update command signature for OpenApi generation
26+
- *(subscription)* Enhance subscription management with loading states and Stripe status checks
1227

1328
### 🐛 Bug Fixes
1429

15-
- *(General)* Change redis_password property to nullable string
30+
- *(pre-commit)* Correct input redirection for /dev/tty and add OpenAPI generation command
31+
- *(pricing-plans)* Adjust grid class for improved layout consistency in subscription pricing plans
32+
- *(migrations)* Make stripe_comment field nullable in subscriptions table
33+
- *(mongodb)* Also apply custom config when SSL is enabled
34+
- *(templates)* Correct casing of denoKV references in service templates and YAML files
35+
- *(deployment)* Handle missing destination in deployment process to prevent errors
36+
37+
### 💼 Other
38+
39+
- Add missing openapi items to PrivateKey
1640

1741
### 🚜 Refactor
1842

19-
- *(Application)* Rename network_aliases to custom_network_aliases across the application for clarity and consistency
43+
- *(commands)* Reorganize OpenAPI and Services generation commands into a new namespace for better structure; remove old command files
44+
- *(Dockerfile)* Remove service generation command from the build process to streamline Dockerfile and improve build efficiency
45+
- *(navbar-delete-team)* Simplify modal confirmation layout and enhance button styling for better user experience
46+
- *(Server)* Remove debug logging from isReachableChanged method to clean up code and improve performance
2047

2148
### 📚 Documentation
2249

50+
- Update changelog
51+
- Update changelog
2352
- Update changelog
2453

2554
### ⚙️ Miscellaneous Tasks
2655

27-
- *(versions)* Bump version to 407 and 408 for coolify and nightly
56+
- *(versions)* Update nightly version to 4.0.0-beta.410
57+
- *(pre-commit)* Remove OpenAPI generation command from pre-commit hook
58+
- *(versions)* Update realtime version to 1.0.7 and bump dependencies in package.json
59+
60+
## [4.0.0-beta.407] - 2025-04-09
61+
62+
### 📚 Documentation
63+
64+
- Update changelog
2865

2966
## [4.0.0-beta.406] - 2025-04-05
3067

3168
### 🚀 Features
3269

3370
- *(Deploy)* Add info dispatch for proxy check initiation
71+
- *(EnvironmentVariable)* Add handling for Redis credentials in the environment variable component
72+
- *(EnvironmentVariable)* Implement protection for critical environment variables and enhance deletion logic
73+
- *(Application)* Add networkAliases attribute for handling network aliases as JSON or comma-separated values
74+
- *(GithubApp)* Update default events to include 'pull_request' and streamline event handling
75+
- *(CleanupDocker)* Add support for realtime image management in Docker cleanup process
76+
- *(Deployment)* Enhance queue_application_deployment to handle existing deployments and return appropriate status messages
77+
- *(SourceManagement)* Add functionality to change Git source and display current source in the application settings
3478

3579
### 🐛 Bug Fixes
3680

@@ -40,14 +84,32 @@ All notable changes to this project will be documented in this file.
4084
- *(api)* Add back validateDataApplications (#5539)
4185
- *(CheckProxy, Status)* Prevent proxy checks when force_stop is active; remove debug statement in General
4286
- *(Status)* Conditionally check proxy status and refresh button based on force_stop state
87+
- *(General)* Change redis_password property to nullable string
88+
- *(DeployController)* Update request handling to use input method and enhance OpenAPI description for deployment endpoint
89+
90+
### 💼 Other
91+
92+
- Add missing UUID to openapi spec
4393

4494
### 🚜 Refactor
4595

4696
- *(Server)* Use data_get for safer access to settings properties in isFunctional method
97+
- *(Application)* Rename network_aliases to custom_network_aliases across the application for clarity and consistency
98+
- *(ApplicationDeploymentJob)* Streamline environment variable handling by introducing generate_coolify_env_variables method and consolidating logic for pull request and main branch scenarios
99+
- *(ApplicationDeploymentJob, ApplicationDeploymentQueue)* Improve deployment status handling and log entry management with transaction support
100+
- *(SourceManagement)* Sort sources by name and improve UI for changing Git source with better error handling
101+
- *(Email)* Streamline SMTP and resend settings handling in copyFromInstanceSettings method
102+
- *(Email)* Enhance error handling in SMTP and resend methods by passing context to handleError function
103+
- *(DynamicConfigurations)* Improve handling of dynamic configuration content by ensuring fallback to empty string when content is null
104+
- *(ServicesGenerate)* Update command signature from 'services:generate' to 'generate:services' for consistency; update Dockerfile to run service generation during build; update Odoo image version to 18 and add extra addons volume in compose configuration
105+
- *(Dockerfile)* Streamline RUN commands for improved readability and maintainability by adding line continuations
106+
- *(Dockerfile)* Reintroduce service generation command in the build process for consistency and ensure proper asset compilation
47107

48108
### ⚙️ Miscellaneous Tasks
49109

50110
- *(versions)* Bump version to 406
111+
- *(versions)* Bump version to 407 and 408 for coolify and nightly
112+
- *(versions)* Bump version to 408 for coolify and 409 for nightly
51113

52114
## [4.0.0-beta.405] - 2025-04-04
53115

@@ -219,6 +281,14 @@ All notable changes to this project will be documented in this file.
219281

220282
### 🚀 Features
221283

284+
- *(github-source)* Enhance GitHub App configuration with manual and private key support
285+
- *(ui)* Improve GitHub repository selection and styling
286+
- *(database)* Implement two-step confirmation for database deletion
287+
- *(assets)* Add new SVG logo for Coolify
288+
- *(install)* Enhance Docker address pool configuration and validation
289+
- *(install)* Improve Docker address pool management and service restart logic
290+
- *(install)* Add missing env variable to install script
291+
- *(LocalFileVolume)* Add binary file detection and update UI logic
222292
- *(service)* Neon
223293
- *(migration)* Add `ssl_certificates` table and model
224294
- *(migration)* Add ssl setting to `standalone_postgresqls` table
@@ -260,14 +330,6 @@ All notable changes to this project will be documented in this file.
260330
- *(ssl)* Improve Redis and remove modes
261331
- Full SSL support for DrangonflyDB
262332
- SSL notification
263-
- *(github-source)* Enhance GitHub App configuration with manual and private key support
264-
- *(ui)* Improve GitHub repository selection and styling
265-
- *(database)* Implement two-step confirmation for database deletion
266-
- *(assets)* Add new SVG logo for Coolify
267-
- *(install)* Enhance Docker address pool configuration and validation
268-
- *(install)* Improve Docker address pool management and service restart logic
269-
- *(install)* Add missing env variable to install script
270-
- *(LocalFileVolume)* Add binary file detection and update UI logic
271333
- *(templates)* Change glance for v0.7
272334
- *(templates)* Add Freescout service template
273335
- *(service)* Add Evolution API template
@@ -285,6 +347,18 @@ All notable changes to this project will be documented in this file.
285347

286348
- *(api)* Docker compose based apps creationg through api
287349
- *(database)* Improve database type detection for Supabase Postgres images
350+
- *(ui)* Correct grammatical error in 404 page
351+
- *(seeder)* Update GitHub app name in GithubAppSeeder
352+
- *(plane)* Update APP_RELEASE to v0.25.2 in environment configuration
353+
- *(domain)* Dispatch refreshStatus event after successful domain update
354+
- *(database)* Correct container name generation for service databases
355+
- *(database)* Limit container name length for database proxy
356+
- *(database)* Handle unsupported database types in StartDatabaseProxy
357+
- *(database)* Simplify container name generation in StartDatabaseProxy
358+
- *(install)* Handle potential errors in Docker address pool configuration
359+
- *(backups)* Retention settings
360+
- *(redis)* Set default redis_username for new instances
361+
- *(core)* Improve instantSave logic and error handling
288362
- *(ssl)* Permission of ssl crt and key inside the container
289363
- *(ui)* Make sure file mounts do not showing the encrypted values
290364
- *(ssl)* Make default ssl mode require not verify-full as it does not need a ca cert
@@ -324,18 +398,6 @@ All notable changes to this project will be documented in this file.
324398
- *(ssl)* Add `--tls` arg to DrangflyDB
325399
- *(notification)* Always send SSL notifications
326400
- *(database)* Change default value of enable_ssl to false for multiple tables
327-
- *(ui)* Correct grammatical error in 404 page
328-
- *(seeder)* Update GitHub app name in GithubAppSeeder
329-
- *(plane)* Update APP_RELEASE to v0.25.2 in environment configuration
330-
- *(domain)* Dispatch refreshStatus event after successful domain update
331-
- *(database)* Correct container name generation for service databases
332-
- *(database)* Limit container name length for database proxy
333-
- *(database)* Handle unsupported database types in StartDatabaseProxy
334-
- *(database)* Simplify container name generation in StartDatabaseProxy
335-
- *(install)* Handle potential errors in Docker address pool configuration
336-
- *(backups)* Retention settings
337-
- *(redis)* Set default redis_username for new instances
338-
- *(core)* Improve instantSave logic and error handling
339401
- *(general)* Correct link to framework specific documentation
340402
- *(core)* Redirect healthcheck route for dockercompose applications
341403
- *(api)* Use name from request payload
@@ -384,14 +446,14 @@ All notable changes to this project will be documented in this file.
384446

385447
### ⚙️ Miscellaneous Tasks
386448

449+
- *(supabase)* Update Supabase service template and Postgres image version
387450
- *(migration)* Remove unused columns
388451
- *(ssl)* Improve code in ssl helper
389452
- *(migration)* Ssl cert and key should not be nullable
390453
- *(ssl)* Rename CA cert to `coolify-ca.crt` because of conflicts
391454
- Rename ca crt folder to ssl
392455
- *(ui)* Improve valid until handling
393456
- Improve code quality suggested by code rabbit
394-
- *(supabase)* Update Supabase service template and Postgres image version
395457
- *(versions)* Update version numbers for coolify and nightly
396458

397459
## [4.0.0-beta.398] - 2025-03-01
@@ -784,6 +846,14 @@ All notable changes to this project will be documented in this file.
784846

785847
### 🚀 Features
786848

849+
- New ServerReachabilityChanged event
850+
- Use new ServerReachabilityChanged event instead of isDirty
851+
- Add infomaniak oauth
852+
- Add server disk usage check frequency
853+
- Add environment_uuid support and update API documentation
854+
- Add service/resource/project labels
855+
- Add coolify.environment label
856+
- Add database subtype
787857
- Able to import full db backups for pg/mysql/mariadb
788858
- Restore backup from server file
789859
- Docker volume data cloning
@@ -819,6 +889,35 @@ All notable changes to this project will be documented in this file.
819889

820890
### 🐛 Bug Fixes
821891

892+
- Fallback for copy button
893+
- Copy the right text
894+
- Maybe fallback is now working
895+
- Only show copy button on secure context
896+
- Render html on error page correctly
897+
- Invalid API response on missing project
898+
- Applications API response code + schema
899+
- Applications API writing to unavailable models
900+
- If an init script is renamed the old version is still on the server
901+
- Oauthseeder
902+
- Compose loading seq
903+
- Resource clone name + volume name generation
904+
- Update Dockerfile entrypoint path to /etc/entrypoint.d
905+
- Debug mode
906+
- Unreachable notifications
907+
- Remove duplicated ServerCheckJob call
908+
- Few fixes and use new ServerReachabilityChanged event
909+
- Use serverStatus not just status
910+
- Oauth seeder
911+
- Service ui structure
912+
- Check port 8080 and fallback to 80
913+
- Refactor database view
914+
- Always use docker cleanup frequency
915+
- Advanced server UI
916+
- Html css
917+
- Fix domain being override when update application
918+
- Use nixpacks predefined build variables, but still could update the default values from Coolify
919+
- Use local monaco-editor instead of Cloudflare
920+
- N8n timezone
822921
- Compose envs
823922
- Scheduled tasks and backups are executed by server timezone.
824923
- Show backup timezone on the UI
@@ -918,6 +1017,7 @@ All notable changes to this project will be documented in this file.
9181017

9191018
### 🚜 Refactor
9201019

1020+
- Rename `coolify.environment` to `coolify.environmentName`
9211021
- Rename parameter in DatabaseBackupJob for clarity
9221022
- Improve checkbox component accessibility and styling
9231023
- Remove unused tags method from ApplicationDeploymentJob
@@ -933,6 +1033,9 @@ All notable changes to this project will be documented in this file.
9331033

9341034
### ⚙️ Miscellaneous Tasks
9351035

1036+
- Regenerate API spec, removing notification fields
1037+
- Remove ray debugging
1038+
- Version ++
9361039
- Improve Penpot healthchecks
9371040
- Switch up readonly lables to make more sense
9381041
- Remove unused computed fields
@@ -956,44 +1059,11 @@ All notable changes to this project will be documented in this file.
9561059

9571060
### 🚀 Features
9581061

959-
- New ServerReachabilityChanged event
960-
- Use new ServerReachabilityChanged event instead of isDirty
961-
- Add infomaniak oauth
962-
- Add server disk usage check frequency
963-
- Add environment_uuid support and update API documentation
964-
- Add service/resource/project labels
965-
- Add coolify.environment label
966-
- Add database subtype
9671062
- Migrate to new encryption options
9681063
- New encryption options
9691064

9701065
### 🐛 Bug Fixes
9711066

972-
- Render html on error page correctly
973-
- Invalid API response on missing project
974-
- Applications API response code + schema
975-
- Applications API writing to unavailable models
976-
- If an init script is renamed the old version is still on the server
977-
- Oauthseeder
978-
- Compose loading seq
979-
- Resource clone name + volume name generation
980-
- Update Dockerfile entrypoint path to /etc/entrypoint.d
981-
- Debug mode
982-
- Unreachable notifications
983-
- Remove duplicated ServerCheckJob call
984-
- Few fixes and use new ServerReachabilityChanged event
985-
- Use serverStatus not just status
986-
- Oauth seeder
987-
- Service ui structure
988-
- Check port 8080 and fallback to 80
989-
- Refactor database view
990-
- Always use docker cleanup frequency
991-
- Advanced server UI
992-
- Html css
993-
- Fix domain being override when update application
994-
- Use nixpacks predefined build variables, but still could update the default values from Coolify
995-
- Use local monaco-editor instead of Cloudflare
996-
- N8n timezone
9971067
- Smtp encryption
9981068
- Bind() to 0.0.0.0:80 failed
9991069
- Oauth seeder
@@ -1003,15 +1073,11 @@ All notable changes to this project will be documented in this file.
10031073
- Error message
10041074
- Update healthcheck and port configurations to use port 8080
10051075

1006-
### 🚜 Refactor
1076+
## [4.0.0-beta.379] - 2024-12-13
10071077

1008-
- Rename `coolify.environment` to `coolify.environmentName`
1009-
1010-
### ⚙️ Miscellaneous Tasks
1078+
### 🐛 Bug Fixes
10111079

1012-
- Regenerate API spec, removing notification fields
1013-
- Remove ray debugging
1014-
- Version ++
1080+
- Saving oauth
10151081

10161082
## [4.0.0-beta.378] - 2024-12-13
10171083

@@ -1020,11 +1086,6 @@ All notable changes to this project will be documented in this file.
10201086
- Monaco editor light and dark mode switching
10211087
- Service status indicator + oauth saving
10221088
- Socialite for azure and authentik
1023-
- Saving oauth
1024-
- Fallback for copy button
1025-
- Copy the right text
1026-
- Maybe fallback is now working
1027-
- Only show copy button on secure context
10281089

10291090
## [4.0.0-beta.377] - 2024-12-13
10301091

app/Jobs/DockerCleanupJob.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueue
3131

3232
public function middleware(): array
3333
{
34-
return [(new WithoutOverlapping($this->server->uuid))->dontRelease()];
34+
return [(new WithoutOverlapping($this->server->uuid))->expireAfter(600)];
3535
}
3636

3737
public function __construct(public Server $server, public bool $manualCleanup = false) {}

0 commit comments

Comments
 (0)