add documentation for the docker solution

This commit is contained in:
emil-lengman 2020-08-12 22:30:44 +02:00 committed by Jérémie Pardou-Piquemal
parent 30fd7c7f4e
commit 84bae14b5e

View File

@ -47,6 +47,16 @@ $ yarn setup
$ yarn dev $ yarn dev
``` ```
#### Using docker-compose
Just run the following:
```
$ docker-compose up
```
This will automatically create the default `.env` files, and run redis for you.
### Production ### Production
Create server and client production builds Create server and client production builds
@ -61,6 +71,22 @@ Start server
$ yarn start $ yarn start
``` ```
#### Using Docker
Build it.
```
$ docker build --tag darkwire.io:latest .
```
Then run it. Example:
```
$ docker run --name darkwire.io --env STORE_HOST=redis://redis.host:6379 darkwire.io
```
You are able to use any of the enviroment variables available in `server/.env.dist` and `client/.env.dist`. The defaults are available in [Dockerfile](Dockerfile)
### Security ### Security
Please report any security issues to `hello@darkwire.io`. Please report any security issues to `hello@darkwire.io`.