feat: add docker-compose setup
This commit is contained in:
20
README.md
20
README.md
@@ -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
|
### 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).
|
This repo contains the core code used in the web app, as well as the Electron-based [desktop application](https://github.com/standardnotes/desktop).
|
||||||
@@ -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`.
|
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:**
|
**Extensions Manager and Batch Manager:**
|
||||||
|
|||||||
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
env_file: .env
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- ${PORT}:3001
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
Reference in New Issue
Block a user