You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deploystack/deploystack-config-file.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,11 @@ You can override these values using the `config.yml` (only on your main branch)
43
43
44
44
| Property | Type | Description | Constraints |
45
45
|----------|------|-------------|-------------|
46
-
| `name` | String | Override the repository name for DeployStack display | Maximum 40 characters |
47
-
| `description` | String | Override the repository description for DeployStack display | Maximum 500 characters |
48
-
| `logo` | String | URL to your application logo | [Application Logo Configuration](/docs/deploystack/application-logo-configuration.md) |
46
+
| `mappings` | Array | Defines relationships between services for connection configuration | Required |
47
+
| `mappings[].fromService` | String | Service that needs to connect to another service | Required |
48
+
| `mappings[].toService` | String | Service being connected to | Required |
49
+
| `mappings[].environmentVariables` | Array of Strings | Environment variable names that reference the target service | Required |
50
+
| `mappings[].property` | String | Type of connection property to reference (e.g., 'connectionString', 'hostport') | Optional, defaults to 'hostport' |
49
51
50
52
The override process follows this order:
51
53
@@ -148,10 +150,12 @@ deployment:
148
150
environmentVariables:
149
151
- "DATABASE_HOST"
150
152
- "DATABASE_URL"
153
+
property: "connectionString"
151
154
- fromService: "frontend"
152
155
toService: "api"
153
156
environmentVariables:
154
157
- "API_URL"
158
+
property: "hostport"
155
159
```
156
160
157
161
This configuration tells DeployStack how to properly configure communication between:
Copy file name to clipboardExpand all lines: docs/docker-to-iac/service-connections.md
+41-5Lines changed: 41 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ menuTitle: Service Connections
5
5
6
6
# Service Connections
7
7
8
-
The `docker-to-iac` module now supports configuring service-to-service communication when translating Docker Compose files to cloud provider IaC templates. This feature is essential for multi-container applications where services need to communicate with each other (e.g., web applications connecting to databases).
8
+
The `docker-to-iac` module supports configuring service-to-service communication when translating Docker Compose files to cloud provider IaC templates. This feature is essential for multi-container applications where services need to communicate with each other (e.g., web applications connecting to databases).
9
9
10
10
## The Challenge
11
11
@@ -63,7 +63,8 @@ const result = translate(dockerComposeContent, {
63
63
environmentVariables: [ // List of env vars that reference the service
64
64
'DATABASE_HOST',
65
65
'API_URL'
66
-
]
66
+
],
67
+
property:'connectionString'// The type of connection (connectionString, hostport, etc.)
67
68
}
68
69
]
69
70
}
@@ -77,6 +78,7 @@ For each service connection mapping:
77
78
-`fromService`: The service that needs to connect to another service
78
79
-`toService`: The service being connected to
79
80
-`environmentVariables`: Array of environment variable names that reference the target service
81
+
-`property`: The type of connection property to reference (e.g., 'connectionString', 'hostport', etc.)
80
82
81
83
## Provider-Specific Implementations
82
84
@@ -99,7 +101,7 @@ services:
99
101
fromService:
100
102
name: db
101
103
type: pserv
102
-
property: hostport
104
+
property: hostport# This property is derived from the 'property' parameter in your mapping
103
105
```
104
106
105
107
This approach leverages Render's built-in service discovery capabilities for reliable inter-service communication.
@@ -122,7 +124,7 @@ services:
122
124
123
125
## Complete Example
124
126
125
-
Here's a complete example showing Node.js microservices communicating with each other:
127
+
Here's a complete example showing Node.js microservices communicating with each other, and a more detailed database connection example:
0 commit comments