Skip to content

Commit

Permalink
fix: adding infra
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Feb 5, 2024
1 parent a267f9f commit 8c4ed43
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
12 changes: 3 additions & 9 deletions apps/console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Start backend services:
docker compose config # implicitly set `env-file` to `.env`
docker compose --env-file .env --env-file .secrets config # explicitly set `env-file` to `.env` and `.secrets`
# start all services
docker compose --env-file .env --env-file .secrets up hasura
docker compose --env-file .env --env-file .secrets up

# open traefik dashboard
# open traefik dashboard
open https://traefik.localhost.direct/dashboard/#/
open https://hasura.localhost.direct/console
open https://mailhog.localhost.direct/
Expand All @@ -35,17 +35,11 @@ open https://minio.localhost.direct/
open https://dashboard.localhost.direct/
open https://storage.localhost.direct/healthz
```
minio
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3

Stop backend services:

```shell
docker compose down
docker compose --env-file .env --env-file .secrets down
# if you want to remove volumes and clear all data
docker compose down -v
```
Expand Down
4 changes: 2 additions & 2 deletions apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"layerchart": "0.27.1",
"lucide-svelte": "0.321.0",
"postcss": "8.4.33",
"prettier": "3.2.4",
"prettier": "3.2.5",
"prettier-plugin-svelte": "3.1.2",
"prettier-plugin-tailwindcss": "0.5.11",
"svelte": "4.2.9",
Expand All @@ -82,7 +82,7 @@
"svelte-ux": "0.57.3",
"sveltekit-flash-message": "2.4.1",
"sveltekit-rate-limiter": "0.4.3",
"sveltekit-superforms": "2.0.0-alpha.26",
"sveltekit-superforms": "2.0.0-alpha.45",
"sveltekit-view-transition": "0.5.3",
"tailwind-merge": "2.2.1",
"tailwind-variants": "0.1.20",
Expand Down
8 changes: 4 additions & 4 deletions apps/console/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { paraglide } from '@inlang/paraglide-js-adapter-sveltekit/vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import houdini from 'houdini/vite';

// if (!existsSync('./../../nhost/traefik/certs/localhost.direct.crt')) {
// if (!existsSync('./../../infra/base/traefik/certs/localhost.direct.crt')) {
// console.log('Missing HTTPS key/cert. You may need to run: npm run cert');
// }

Expand All @@ -16,9 +16,9 @@ export default defineConfig({
// b.t.w packages/ui/tsconfig.json has paths.
server: {
host: 'console.localhost.direct',
https : {
cert: './../../nhost/traefik/certs/localhost.direct.crt',
key: './../../nhost/traefik/certs/localhost.direct.key',
https: {
cert: './../../infra/base/traefik/certs/localhost.direct.crt',
key: './../../infra/base/traefik/certs/localhost.direct.key'
},
proxy: {}
},
Expand Down

0 comments on commit 8c4ed43

Please sign in to comment.