mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
add documentation for the docker solution
This commit is contained in:
parent
30fd7c7f4e
commit
84bae14b5e
26
readme.md
26
readme.md
@ -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`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user