Skip to content

Commit 1381d41

Browse files
committed
rm user name and db, assume defaults
1 parent fb9b9c5 commit 1381d41

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

samples/hasura/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ A password for your database.
4141
defang 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`
4551
A password you would like to log into Hasura with.
4652
```bash
4753
defang config set HASURA_GRAPHQL_ADMIN_SECRET

samples/hasura/compose.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)