Andras Bacsai
a5ce1db871
fix: handle map-style environment variables in updateCompose
...
The updateCompose() function now correctly detects SERVICE_URL_* and
SERVICE_FQDN_* variables regardless of whether they are defined in
YAML list-style or map-style format.
Previously, the code only worked with list-style environment definitions:
```yaml
environment:
- SERVICE_URL_APP_3000
```
Now it also handles map-style definitions:
```yaml
environment:
SERVICE_URL_TRIGGER_3000: ""
SERVICE_FQDN_DB: localhost
```
The fix distinguishes between the two formats by checking if the array
key is numeric (list-style) or a string (map-style), then extracts the
variable name from the appropriate location.
Added 5 comprehensive unit tests covering:
- Map-style environment format detection
- Multiple map-style variables
- References vs declarations in map-style
- Abbreviated service names with map-style
- Verification of dual-format handling
This fixes variable detection for service templates like trigger.yaml,
langfuse.yaml, and paymenter.yaml that use map-style format.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 11:21:49 +01:00
Andras Bacsai
56f32d0f87
fix: properly handle SERVICE_URL and SERVICE_FQDN for abbreviated service names ( #7243 )
...
Parse template variables directly instead of generating from container names. Always create both SERVICE_URL and SERVICE_FQDN pairs together. Properly separate scheme handling (URL has scheme, FQDN doesn't). Add comprehensive test coverage.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 11:21:49 +01:00
Andras Bacsai
7fc4a2f7f6
feat: implement service environment variable parsing and add unit tests for port detection logic
2025-11-11 11:19:33 +01:00
Andras Bacsai
133e72336a
Revert "refactor(file-transfer): replace base64 encoding with direct file transfer method in various components for improved clarity and efficiency"
...
This reverts commit feacedbb04 .
2025-09-15 17:56:48 +02:00
Andras Bacsai
5b3b4bbc43
refactor(environment): remove 'is_build_time' attribute from environment variable handling across the application to simplify configuration
2025-09-11 16:51:56 +02:00
Andras Bacsai
501e6a2650
refactor(environment): standardize service name formatting by replacing '-' and '.' with '_' in environment variable keys
2025-09-11 13:59:02 +02:00
Andras Bacsai
feacedbb04
refactor(file-transfer): replace base64 encoding with direct file transfer method in various components for improved clarity and efficiency
2025-09-09 11:10:38 +02:00
Andras Bacsai
a0bc4dac55
fix(application): streamline environment variable updates for Docker Compose services and enhance FQDN generation logic
2025-08-12 10:06:19 +02:00
Andras Bacsai
90ccaeba51
feat(application): implement environment variable updates for Docker Compose applications, including creation, updating, and deletion of SERVICE_FQDN and SERVICE_URL variables
2025-07-18 20:48:56 +02:00
Andras Bacsai
5e693eb4b5
refactor(services): simplify environment variable updates by using updateOrCreate and add cleanup for removed FQDNs
2025-07-18 20:48:56 +02:00
Andras Bacsai
9ed77e5eef
fix(services): update environment variable naming convention to use underscores instead of dashes for SERVICE_FQDN and SERVICE_URL
2025-07-18 20:48:56 +02:00
Andras Bacsai
2a9d499251
feat: migrate env variables to polymorphic relationship
...
fix: proxy status query ui
2024-12-17 10:38:42 +01:00
Lucas Michot
1ec224fde1
Inline many variables.
2024-10-31 18:20:11 +01:00
Lucas Michot
601f1a4717
Always prefer stricter string comparisons.
2024-10-31 15:23:19 +01:00
Lucas Michot
c5403b0b3f
Always prefer ::class notation
2024-10-28 14:56:13 +01:00
Andras Bacsai
1d72f76072
fix: appwrite template + parser
2024-09-09 15:04:51 +02:00
Andras Bacsai
7d7cdf41f7
fix: storages with preserved git repository
2024-08-21 14:31:17 +02:00
Andras Bacsai
6da359bc60
fix: empty string content should be saved as a file
2024-08-07 12:58:32 +02:00
Andras Bacsai
76c39a987c
fix: service_url should not have a trailing slash
2024-08-05 13:42:51 +02:00
Andras Bacsai
d7350fad76
fix: several shared environment variables in one value, parsed correctly
2024-07-26 13:22:44 +02:00
Andras Bacsai
0e0c81c32b
fix: update SERVICE_FQDN/URL env variables when you change the domain
2024-07-26 11:58:40 +02:00
Andras Bacsai
320204d854
fix: directory will be created by default for compose host mounts
2024-07-22 15:10:07 +02:00
Andras Bacsai
43409f3ff0
fix: add validation for missing docker compose file
2024-07-15 11:31:18 +02:00
Andras Bacsai
28c7e439b1
fix: service domains and envs are properly updated
2024-07-15 10:55:04 +02:00
Andras Bacsai
6c33bd9c72
openapi services
2024-07-09 13:30:13 +02:00
Andras Bacsai
2c92cc40e1
refactor: Update code to use str() instead of Str::of() for string manipulation
2024-06-25 10:37:10 +02:00
Thijmen
d86274cc37
Fix styling
2024-06-10 20:43:34 +00:00
Andras Bacsai
0ddd5f0a79
refactor: Remove unnecessary port appending in updateCompose function
2024-05-31 10:55:08 +02:00
iamEvan
71e32520cf
fix: SERVICE_FQDN has source port in it
2024-05-30 20:05:44 +01:00
Andras Bacsai
80ada9c90a
fix: add subpath for services
2024-05-22 15:45:30 +02:00
Andras Bacsai
11baa97ef6
Refactor services.php file to improve variable replacement logic
2024-04-29 12:04:32 +02:00
Andras Bacsai
b71f1a79c8
revert: variable parsing
2024-04-26 21:11:40 +02:00
Andras Bacsai
9a9be466f7
Refactor replaceVariables function in services.php to use a more concise syntax
2024-04-26 13:49:38 +02:00
Andras Bacsai
35b07a9c18
Refactor code to add sudo prefix for certain commands in multiple files
2024-04-17 10:49:34 +02:00
Andras Bacsai
41f4b36593
wip: non-root
2024-04-16 20:57:54 +02:00
Andras Bacsai
85b33a60b3
feat: can edit file/dir volumes from ui in compose based apps
2024-04-15 19:47:17 +02:00
Andras Bacsai
ddfded048c
fix: how to update docker-compose, environment variables and fqdns
2024-04-08 11:17:00 +02:00
Andras Bacsai
b5775ff9d2
ui ui ui ui ui ui ux ux ux ux ux ux
2024-03-21 12:44:32 +01:00
Andras Bacsai
25ae54cab7
fix: service ports for services + caddy
2024-03-12 15:09:24 +01:00
Andras Bacsai
4d319a8caa
Update service and shared helper files
2024-02-21 12:22:32 +01:00
Andras Bacsai
b8708f086e
feat: initial api endpoints
...
feat: server resources are now looks better
2024-02-16 21:56:38 +01:00
Andras Bacsai
6b5339c1c1
Remove ray debug statement and refactor random
...
name generator
2023-11-13 11:44:13 +01:00
Andras Bacsai
e40f397cc7
fix: service updates
2023-11-11 21:32:41 +01:00
Andras Bacsai
5a90eed7ef
fix: compose parser updated
2023-10-04 14:40:26 +02:00
Andras Bacsai
4ac8e1cc67
fix: services file/dir read from server
...
ui: fix storages layout
2023-10-04 09:58:39 +02:00
Andras Bacsai
9701c65297
fix: predefined content for files
2023-10-02 18:02:32 +02:00
Andras Bacsai
79fde593a9
fix: service volume read from filesystem
...
fix: edit compose moved to dialog
2023-09-30 15:08:40 +02:00
Andras Bacsai
64ce41df0f
fix: file/dir based volumes are now read from the server
2023-09-29 21:38:11 +02:00
Andras Bacsai
398f122593
fix: aaaaaaaaaaaaaaaaa
2023-09-27 15:48:19 +02:00
Andras Bacsai
f0abdcc2da
okay, now it is way better
2023-09-27 12:45:53 +02:00