File tree Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 19
19
- name : Deploy
20
20
uses :
DefangLabs/[email protected]
21
21
with :
22
- config-env-vars : SECRET_KEY POSTGRES_PASSWORD POSTGRES_PARAMS
22
+ config-env-vars : SECRET_KEY POSTGRES_PASSWORD
23
23
env :
24
24
SECRET_KEY : ${{ secrets.SECRET_KEY }}
25
- POSTGRES_PASSWORD : ${{ secrets.POSTGRES_PASSWORD }}
26
- POSTGRES_PARAMS : ${{ secrets.POSTGRES_PARAMS }}
25
+ POSTGRES_PASSWORD : ${{ secrets.POSTGRES_PASSWORD }}
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ services:
7
7
- ./app:/app
8
8
healthcheck : {}
9
9
environment :
10
- REDIS_URL : redis://redis-service:6379
11
- POSTGRES_URL : postgres://djangouser:djangopassword@postgres-service:5432/djangodatabase
12
- DEBUG : " True"
10
+ - REDIS_URL= redis://redis-service:6379
11
+ - POSTGRES_URL= postgres://djangouser:djangopassword@postgres-service:5432/djangodatabase
12
+ - DEBUG= "True"
13
13
depends_on :
14
14
- redis-service
15
15
- postgres-service
@@ -25,9 +25,9 @@ services:
25
25
file : compose.yaml
26
26
service : postgres-service
27
27
environment :
28
- POSTGRES_DB : djangodatabase
29
- POSTGRES_USER : djangouser
30
- POSTGRES_PASSWORD : djangopassword
28
+ - POSTGRES_DB= djangodatabase
29
+ - POSTGRES_USER= djangouser
30
+ - POSTGRES_PASSWORD= djangopassword
31
31
volumes :
32
32
- postgres_data:/var/lib/postgresql/data
33
33
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ services:
10
10
published : 8000
11
11
mode : ingress
12
12
environment :
13
- REDIS_URL : redis://redis-service:6379
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} "
16
- SECRET_KEY :
13
+ - REDIS_URL= redis://redis-service:6379
14
+ # if using BYOC add sslmode=require to the POSTGRES_URL query params
15
+ - POSTGRES_URL= postgres://djangouser:${POSTGRES_PASSWORD}@postgres-service:5432/djangodatabase?
16
+ - SECRET_KEY
17
17
healthcheck :
18
18
# wget or curl required for healthchecks on services with a published port
19
19
# this gets parsed by Defang and provided to the load balancers as well
@@ -35,6 +35,6 @@ services:
35
35
- mode : host
36
36
target : 5432
37
37
environment :
38
- POSTGRES_PASSWORD :
39
- POSTGRES_DB : djangodatabase
40
- POSTGRES_USER : djangouser
38
+ - POSTGRES_PASSWORD
39
+ - POSTGRES_DB= djangodatabase
40
+ - POSTGRES_USER= djangouser
You can’t perform that action at this time.
0 commit comments