Skip to content

Commit

Permalink
feat: add docker-compose setup
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Aug 10, 2020
1 parent 3fa0d6c commit b2fde84
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Questions? Find answers on our [Help page](https://standardnotes.org/help).

---

### Running with Docker image

You can run the application by using our [official Docker image](https://hub.docker.com/r/standardnotes/web)

Make sure you are using the appropriate tag for your use case. `develop` branch is tagged with `latest` and `master` branch is tagged with `stable`.

### Running Locally

This repo contains the core code used in the web app, as well as the Electron-based [desktop application](https://github.com/standardnotes/desktop).
Expand All @@ -77,6 +83,20 @@ This repo contains the core code used in the web app, as well as the Electron-ba

Then open your browser to `http://localhost:3001`.

### Running Locally with Docker

To run the app locally with Docker, first build the image by running:
```
docker-compose build
```

Then configure and start the application by typing:
```
cp .env.sample .env
// adjust your config if needed
docker-compose up
```

---

**Extensions Manager and Batch Manager:**
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'
services:
app:
build:
context: .
env_file: .env
restart: unless-stopped
ports:
- ${PORT}:3001
volumes:
- .:/app

0 comments on commit b2fde84

Please sign in to comment.