Skip to content

Commit

Permalink
feat(dockerfile): dockerize Bulwark
Browse files Browse the repository at this point in the history
Add ability to launch Bulwark locally using Docker.

245
  • Loading branch information
skewled committed Oct 7, 2020
1 parent 8ac6fdd commit fe07262
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ CRYPTO_SALT=""

## Example Docker .env

Leave the DB\_ variables alone as they're required, and update the JWT_KEY, JWT_REFRESH_KEY, CRYPT_SECRET, and CRYPT_SALT. You may update all of them if you
Update the JWT_KEY, JWT_REFRESH_KEY, CRYPTO_SECRET, and CRYPTO_SALT. You may update all of them if you
know what you're doing.

```
Expand All @@ -150,26 +150,10 @@ DB_TYPE="mysql"
NODE_ENV="production"
DEV_URL="http://localhost:4200"
PROD_URL="http://localhost:5000"
JWT_KEY="UY5614f$NAFB2pI"
JWT_REFRESH_KEY="U42U2K432IU52"
CRYPTO_SECRET="as9df86as9d6f9asf86498g698sd6f9s8g5s95hr"
CRYPTO_SALT="as29fzx98cv6a9sb5w9b59cxbc5957wb9w5wr957w5b"
```

### Docker Launch

You will need to save the contents above in a `.env` file before you use docker-compose.

To Start Bulwark:

```
docker-compose up -d
```

To Stop Bulwark:

```
docker-compose down
JWT_KEY=""
JWT_REFRESH_KEY=""
CRYPTO_SECRET=""
CRYPTO_SALT=""
```

## Create Initial Database Migration
Expand Down Expand Up @@ -197,6 +181,20 @@ An account is created on initial startup with the following credentials:

Upon first login, update the default user password under the profile section.

### Docker Launch

To Start Bulwark:

```
docker-compose up
```

To Stop Bulwark:

```
docker-compose down
```

## Built With

- [Typeorm](https://typeorm.io/#/) - The ORM used
Expand Down

0 comments on commit fe07262

Please sign in to comment.