Skip to content

Commit 4204483

Browse files
committed
Update for demo. Forces users to choose diff connection params for byoc/playground and comments out x-defang stuff so playground deploys properly.
1 parent 9428dad commit 4204483

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

samples/django-channels-redis-postgres/compose.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ services:
1111
mode: ingress
1212
environment:
1313
REDIS_URL: redis://redis-service:6379
14-
POSTGRES_URL: "postgres://djangouser:${POSTGRES_PASSWORD}@postgres-service:5432/djangodatabase?sslmode=require"
14+
# if using BYOC set POSTGRES_PARAMS to ?sslmode=require in playground, set to ?
15+
POSTGRES_URL: "postgres://djangouser:${POSTGRES_PASSWORD}@postgres-service:5432/djangodatabase${POSTGRES_PARAMS}"
1516
SECRET_KEY:
1617
healthcheck:
1718
# wget or curl required for healthchecks on services with a published port
@@ -20,14 +21,16 @@ services:
2021

2122
redis-service:
2223
image: redis:6.2
23-
x-defang-redis: true
24+
# uncomment the following line in BYOC
25+
# x-defang-redis: true
2426
ports:
2527
- mode: host
2628
target: 6379
2729

2830
postgres-service:
2931
image: postgres:16.4
30-
x-defang-postgres: true
32+
# uncomment the following line in BYOC
33+
# x-defang-postgres: true
3134
ports:
3235
- mode: host
3336
target: 5432

0 commit comments

Comments
 (0)