Browse Source

Update secret generation. Update request app

staging
David Ludwig 4 years ago
parent
commit
ae2fe01257
4 changed files with 11 additions and 4 deletions
  1. +3
    -0
      docker-compose.yml
  2. +7
    -0
      generate_secrets.sh
  3. +1
    -1
      request
  4. +0
    -3
      setup.sh

+ 3
- 0
docker-compose.yml View File

@ -15,6 +15,7 @@ services:
ports: ports:
- 3200:3200 - 3200:3200
secrets: secrets:
- app_key
- mysql_root_password - mysql_root_password
volumes: volumes:
- tmp:/tmp - tmp:/tmp
@ -68,6 +69,8 @@ services:
- mysql:/var/lib/mysql - mysql:/var/lib/mysql
secrets: secrets:
app_key:
file: ./.secrets/app_key
mysql_root_password: mysql_root_password:
file: ./.secrets/mysql_root_password file: ./.secrets/mysql_root_password


+ 7
- 0
generate_secrets.sh View File

@ -0,0 +1,7 @@
#!/bin/bash
# Application Key
openssl rand -base64 20 > .secrets/app_key
# MySql Password
openssl rand -base64 20 > .secrets/mysql_root_password

+ 1
- 1
request

@ -1 +1 @@
Subproject commit 560ffe89f3534cc3bc47e19644307e76b8822b51
Subproject commit b204472c37fd9660ef730d4555f98efee280ec5e

+ 0
- 3
setup.sh View File

@ -1,3 +0,0 @@
#!/bin/bash
openssl rand -base64 20 > .secrets/mysql_root_password

Loading…
Cancel
Save