File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
samples/django-channels-redis-postgres Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ services:
11
11
mode : ingress
12
12
environment :
13
13
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}"
15
16
SECRET_KEY :
16
17
healthcheck :
17
18
# wget or curl required for healthchecks on services with a published port
@@ -20,14 +21,16 @@ services:
20
21
21
22
redis-service :
22
23
image : redis:6.2
23
- x-defang-redis : true
24
+ # uncomment the following line in BYOC
25
+ # x-defang-redis: true
24
26
ports :
25
27
- mode : host
26
28
target : 6379
27
29
28
30
postgres-service :
29
31
image : postgres:16.4
30
- x-defang-postgres : true
32
+ # uncomment the following line in BYOC
33
+ # x-defang-postgres: true
31
34
ports :
32
35
- mode : host
33
36
target : 5432
You can’t perform that action at this time.
0 commit comments