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 1919 - name : Deploy
2020 uses :
DefangLabs/[email protected] 2121 with :
22- config-env-vars : SECRET_KEY POSTGRES_PASSWORD POSTGRES_PARAMS
22+ config-env-vars : SECRET_KEY POSTGRES_PASSWORD
2323 env :
2424 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:
77 - ./app:/app
88 healthcheck : {}
99 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"
1313 depends_on :
1414 - redis-service
1515 - postgres-service
@@ -25,9 +25,9 @@ services:
2525 file : compose.yaml
2626 service : postgres-service
2727 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
3131 volumes :
3232 - postgres_data:/var/lib/postgresql/data
3333
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ services:
1010 published : 8000
1111 mode : ingress
1212 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
1717 healthcheck :
1818 # wget or curl required for healthchecks on services with a published port
1919 # this gets parsed by Defang and provided to the load balancers as well
@@ -35,6 +35,6 @@ services:
3535 - mode : host
3636 target : 5432
3737 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