use env variables instead of using plain passwords

Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
This commit is contained in:
Krasi Georgiev 2019-09-23 16:38:41 +03:00
parent 657875b740
commit 269158787f
3 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,6 @@
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
create role loraserver_ns with login password 'loraserver_ns';
create role loraserver_ns with login password '$POSTGRES_PASSWORD';
create database loraserver_ns with owner loraserver_ns;
EOSQL

View File

@ -2,6 +2,6 @@
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
create role loraserver_as with login password 'loraserver_as';
create role loraserver_as with login password '$POSTGRES_PASSWORD';
create database loraserver_as with owner loraserver_as;
EOSQL

View File

@ -20,7 +20,7 @@ services:
- REDIS.URL=redis://redis:6379
- APPLICATION_SERVER.INTEGRATION.MQTT.SERVER=tcp://mosquitto:1883
- APPLICATION_SERVER.API.PUBLIC_HOST=appserver:8001
- APPLICATION_SERVER.EXTERNAL_API.JWT_SECRET=verysecret
- APPLICATION_SERVER.EXTERNAL_API.JWT_SECRET=${JWT_SECRET}
gatewaybridge:
image: loraserver/lora-gateway-bridge:3