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:
parent
657875b740
commit
269158787f
@ -2,6 +2,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
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;
|
create database loraserver_ns with owner loraserver_ns;
|
||||||
EOSQL
|
EOSQL
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
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;
|
create database loraserver_as with owner loraserver_as;
|
||||||
EOSQL
|
EOSQL
|
||||||
|
@ -20,7 +20,7 @@ services:
|
|||||||
- REDIS.URL=redis://redis:6379
|
- REDIS.URL=redis://redis:6379
|
||||||
- APPLICATION_SERVER.INTEGRATION.MQTT.SERVER=tcp://mosquitto:1883
|
- APPLICATION_SERVER.INTEGRATION.MQTT.SERVER=tcp://mosquitto:1883
|
||||||
- APPLICATION_SERVER.API.PUBLIC_HOST=appserver:8001
|
- APPLICATION_SERVER.API.PUBLIC_HOST=appserver:8001
|
||||||
- APPLICATION_SERVER.EXTERNAL_API.JWT_SECRET=verysecret
|
- APPLICATION_SERVER.EXTERNAL_API.JWT_SECRET=${JWT_SECRET}
|
||||||
|
|
||||||
gatewaybridge:
|
gatewaybridge:
|
||||||
image: loraserver/lora-gateway-bridge:3
|
image: loraserver/lora-gateway-bridge:3
|
||||||
|
Loading…
Reference in New Issue
Block a user