Skip to content

Commit cdceb60

Browse files
authored
docs: ECS - Specify sslmode=disable on DB url (windmill-labs#468)
1 parent beb79ec commit cdceb60

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/advanced/1_self_host/aws_ecs.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ We will create 6 tasks definitions here:
163163
- Essential container: YES
164164
- Port mapping: 8000 / TCP / http / HTTP
165165
- Resource allocation: 1 CPU / 1.5 GiB memory
166-
- Environment variable: `JSON_FMT=true`, `MODE=server` and `DATABASE_URL=postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill`. Replace the hostname and password with the ones from the RDS database your created above
166+
- Environment variable: `JSON_FMT=true`, `MODE=server` and `DATABASE_URL=postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill?sslmode=disable`. Replace the hostname and password with the ones from the RDS database your created above
167167
- Turn on log collection for easy debugging
168168
- Add the following health check: `CMD-SHELL, curl -f http://localhost:8000/api/version || exit 1` - Interval: `10s` - Timeout: `5s` - Retries: `5`
169169
- Leave the rest default
@@ -198,7 +198,7 @@ The following fields needs to be set manually: `LATEST_RELEASE`, `DB_PASSWORD`,
198198
},
199199
{
200200
"name": "DATABASE_URL",
201-
"value": "postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill"
201+
"value": "postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill?sslmode=disable"
202202
},
203203
{
204204
"name": "MODE",
@@ -258,7 +258,7 @@ The following fields needs to be set manually: `LATEST_RELEASE`, `DB_PASSWORD`,
258258
- Essential container: YES
259259
- Port mapping: No port mapping for workers
260260
- Resource allocation: 2 CPU / 3.5 GiB memory
261-
- Environment variable: `JSON_FMT=true`, `MODE=worker`, `WORKER_GROUP=default` and `DATABASE_URL=postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill`
261+
- Environment variable: `JSON_FMT=true`, `MODE=worker`, `WORKER_GROUP=default` and `DATABASE_URL=postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill?sslmode=disable`
262262
- Add a Bind volume named `worker_dependency_cache` mapped to `/tmp/windmill/cache`
263263
- Turn on log collection for easy debugging
264264
- This is it, leave the rest default
@@ -281,7 +281,7 @@ The following fields needs to be set manually: `LATEST_RELEASE`, `DB_PASSWORD`,
281281
"environment": [
282282
{
283283
"name": "DATABASE_URL",
284-
"value": "postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill"
284+
"value": "postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill?sslmode=disable"
285285
},
286286
{
287287
"name": "JSON_FMT",
@@ -350,7 +350,7 @@ The following fields needs to be set manually: `LATEST_RELEASE`, `DB_PASSWORD`,
350350
- Essential container: YES
351351
- Port mapping: no port mapping for workers
352352
- Resource allocation: 2 CPU / 3.5 GiB memory
353-
- Environment variable: `JSON_FMT=true`, `MODE=worker`, `WORKER_GROUP=native` and `DATABASE_URL=postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill`
353+
- Environment variable: `JSON_FMT=true`, `MODE=worker`, `WORKER_GROUP=native` and `DATABASE_URL=postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill?sslmode=disable`
354354
- Add a Bind volume named `worker_dependency_cache` mapped to `/tmp/windmill/cache`
355355
- Turn on log collection for easy debugging
356356
- This is it, leave the rest default
@@ -373,7 +373,7 @@ The following fields needs to be set manually: `LATEST_RELEASE`, `DB_PASSWORD`,
373373
"environment": [
374374
{
375375
"name": "DATABASE_URL",
376-
"value": "postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill"
376+
"value": "postgres://postgres:<DB_PASSWORD>@<DB_HOSTNAME>:5432/windmill?sslmode=disable"
377377
},
378378
{
379379
"name": "JSON_FMT",

0 commit comments

Comments
 (0)