File tree Expand file tree Collapse file tree 3 files changed +36
-4
lines changed
Expand file tree Collapse file tree 3 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,13 @@ A password for your database.
4141defang config set POSTGRES_PASSWORD
4242```
4343
44- ### ` HASURA_GRAPHQL_ADMIN_SECRET `
44+ ### ` SSL_MODE `
45+ Either ` disable ` if you're using the Defang Playground or ` require ` if you're using BYOC.
46+ ``` bash
47+ defang config set SSL_MODE
48+ ```
49+
50+ ### ` HASURA_GRAPHQL_ADMIN_SECRET `
4551A password you would like to log into Hasura with.
4652``` bash
4753defang config set HASURA_GRAPHQL_ADMIN_SECRET
Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ services:
1515 condition : service_started
1616 environment :
1717 - HASURA_GRAPHQL_ADMIN_SECRET
18- - HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres
18+ - HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres?sslmode=${SSL_MODE}
1919 - HASURA_GRAPHQL_ENABLE_CONSOLE=true
2020 - HASURA_GRAPHQL_UNAUTHORIZED_ROLE=public
2121 - HASURA_GRAPHQL_EXPERIMENTAL_FEATURES=naming_convention
2222 - HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION=graphql-default
2323 - HASURA_GRAPHQL_MIGRATIONS_DIR=/hasura/migrations
2424 - HASURA_GRAPHQL_METADATA_DIR=/hasura/metadata
25+ - SSL_MODE
2526
2627 database :
2728 image : postgres:16
@@ -30,6 +31,4 @@ services:
3031 - target : 5432
3132 mode : host
3233 environment :
33- - POSTGRES_USER=postgres
34- - POSTGRES_DB=postgres
3534 - POSTGRES_PASSWORD
Original file line number Diff line number Diff line change 1+ # Default .dockerignore file for Defang
2+ ** /__pycache__
3+ ** /.direnv
4+ ** /.DS_Store
5+ ** /.envrc
6+ ** /.git
7+ ** /.github
8+ ** /.idea
9+ ** /.next
10+ ** /.vscode
11+ ** /compose. * .yaml
12+ ** /compose. * .yml
13+ ** /compose.yaml
14+ ** /compose.yml
15+ ** /docker-compose. * .yaml
16+ ** /docker-compose. * .yml
17+ ** /docker-compose.yaml
18+ ** /docker-compose.yml
19+ ** /node_modules
20+ ** /Thumbs.db
21+ Dockerfile
22+ * .Dockerfile
23+ # Ignore our own binary, but only in the root to avoid ignoring subfolders
24+ defang
25+ defang.exe
26+ # Ignore our project-level state
27+ .defang
You can’t perform that action at this time.
0 commit comments