Skip to content

Updates in packages #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ This Node application demonstrates a simple, barebones Metabase dashboard embedd

- **Node**. You'll need [Node](https://nodejs.org/en/) installed on your machine to run the application.

- **Yarn**. You'll need the [Yarn package manager](https://classic.yarnpkg.com/en/) to install the application's dependencies.

## Set up the Node application

1. In a new terminal session, `cd` into this directory.

2. Run `yarn install` to install the application's dependencies.
2. Run `npm install` to install the application's dependencies.

3. Once the application dependencies are installed, run `yarn start` or:
3. Once the application dependencies are installed, run `npm start` or:

```shell
node index.js
Expand Down
35 changes: 24 additions & 11 deletions node/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
version: '3.9'
services:
metabase:
image: metabase/metabase-enterprise:v1.45.2.1
image: metabase/metabase-enterprise:v1.54.9
container_name: metabase_signed_app_embedding_demo
hostname: metabase
ports:
- 3000:3000
environment:
- "MB_SITE_URL=http://localhost:3000"
- "MB_EMBEDDING_APP_ORIGIN=*"
- "MB_ENABLE_EMBEDDING=true"
- "MB_EMBEDDING_SECRET_KEY=a1c0952f3ff361f1e7dd8433a0a50689a004317a198ecb0a67ba90c73c27a958"
- "MB_ENABLE_PUBLIC_SHARING=true"
MB_SITE_URL: http://localhost:3000
MB_EMBEDDING_APP_ORIGIN: "*"
MB_ENABLE_EMBEDDING: true
MB_EMBEDDING_SECRET_KEY: a1c0952f3ff361f1e7dd8433a0a50689a004317a198ecb0a67ba90c73c27a958
MB_ENABLE_PUBLIC_SHARING: true
networks:
- metanet1
volumes:
- ../metabase:/metabase.db
cpus: 1
mem_limit: 1024mb
deploy:
resources:
limits:
cpus: '1'
memory: 2048M
reservations:
cpus: '1'
memory: 2048M
node_signed_app_embedding_demo:
build: .
container_name: webapp_signed_app_embedding_demo
Expand All @@ -27,8 +32,16 @@ services:
networks:
- metanet1
environment:
- METABASE_URL=http://localhost:3000
- PORT=8080
METABASE_URL: http://localhost:3000
PORT: 8080
deploy:
resources:
limits:
cpus: '1'
memory: 256M
reservations:
cpus: '1'
memory: 256M
networks:
metanet1:
driver: bridge
Loading