Skip to content
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
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
EXPOSE 9000
CMD ["npx", "pocketbase-uml@latest"]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ You can access it online at [pocketbase-uml.github.io](https://pocketbase-uml.gi
npx pocketbase-uml@latest
```

You can build your Docker Image using our Dockerfile:

1- First, you can build the image using this command:

```sh
docker build -t pocket-app .
```

2- Run the Docker container:

```sh
docker run -d -p <PortOnYourChoise>:9000 pocket-app
```

3- Browse the application via: http://localhost:`ThePortThatYouHaveChosen`

Due to security browser restrictions, the online application can only access PocketBase databases through HTTPS.
If you want to access a local PocketBase databases through HTTP, you can either run the application locally or use a service such as [ngrok](https://ngrok.com) to expose your local server to the Internet.

Expand Down