feat: add docker-compose setup

This commit is contained in:
Karol Sójko
2020-08-10 08:51:56 +02:00
parent 3fa0d6cdba
commit b2fde84f8b
2 changed files with 31 additions and 0 deletions

View File

@@ -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).
@@ -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:**

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
version: '3'
services:
app:
build:
context: .
env_file: .env
restart: unless-stopped
ports:
- ${PORT}:3001
volumes:
- .:/app