Skip to content

Commit 4d8a57c

Browse files
committed
Add restart: unless-stopped
1 parent a8f4fa4 commit 4d8a57c

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
.env
2-
.env.psql
32
*.log
43
*.tmp
54
*.swp
65
*.bak
76
.vscode/
87
.idea/
98
.DS_Store
10-
postgres/migrations/.applied_migrations

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img alt="SuperStack logo" src="https://github.com/explodinglabs/superstack/blob/main/logo.png?raw=true" />
33
</p>
44

5-
<h1 align="center">SuperStack App</h1>
5+
<h1 align="center">SuperStack</h1>
66

77
<p align="center">
88
<a href="https://explodinglabs.com/superstack/">SuperStack Docs</a>

compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ services:
77
- 443:443
88
environment:
99
CADDY_SITE_ADDRESS: edge.myapp.com
10+
restart: unless-stopped
1011

1112
postgrest-trusted:
1213
image: postgrest/postgrest:v14.2
1314
environment:
1415
PGRST_DB_ANON_ROLE: trusted
1516
PGRST_DB_SCHEMAS: core, logic
1617
PGRST_DB_URI: postgres://authenticator:${PGRST_AUTHENTICATOR_PASS:?}@infra.local:5432/myapp
18+
restart: unless-stopped
1719

1820
postgrest-untrusted:
1921
image: postgrest/postgrest:v14.2
2022
environment:
2123
PGRST_DB_ANON_ROLE: untrusted
2224
PGRST_DB_SCHEMAS: api
2325
PGRST_DB_URI: postgres://authenticator:${PGRST_AUTHENTICATOR_PASS:?}@infra.local:5432/myapp
26+
restart: unless-stopped

example.env

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# .env - Secrets
22

3-
# App/Service passwords for the authenticator and migrator.
3+
APP_DB=
4+
MIGRATOR_ROLE=myapp_migrator
5+
6+
# Password for the migrator - unique to this app/service.
47
# Generate with openssl rand -hex 16 |tr -d '\n'
58
MIGRATOR_PASS=
69

@@ -14,10 +17,12 @@ PGRST_AUTHENTICATOR_PASS=
1417
# Generate with openssl rand -base64 32 | tr -d '\n'
1518
JWT_SECRET=
1619

20+
RABBITMQ_HOST=rabbitmq
21+
RABBITMQ_PORT=5672
1722

18-
# Used for tools like createapp and migrate
23+
# Used for tools like bootstrap and migrate
1924
PGHOST=postgres
2025
PGPORT=5432
26+
PGDATABASE=myapp
2127
PGUSER=admin
22-
PGDATABASE=postgres
2328
PGPASSWORD=

0 commit comments

Comments
 (0)