Set dsn and container name for postgre integration
This commit is contained in:
parent
bebb9e9e9d
commit
8f4bbf118c
@ -106,6 +106,6 @@
|
|||||||
json=true
|
json=true
|
||||||
|
|
||||||
[integration.postgresql]
|
[integration.postgresql]
|
||||||
dsn="postgres://chirpstack:chirpstack@localhost/chirpstack_integration?sslmode=disable"
|
dsn="postgres://chirpstack:chirpstack@postgres/chirpstack_integration?sslmode=disable"
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,6 +3,5 @@ set -e
|
|||||||
|
|
||||||
# PostgreSQL commands to create a new role and database for ChirpStack
|
# PostgreSQL commands to create a new role and database for ChirpStack
|
||||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||||
create role chirpstack with login password 'chirpstack';
|
|
||||||
create database chirpstack_integration with owner chirpstack;
|
create database chirpstack_integration with owner chirpstack;
|
||||||
EOSQL
|
EOSQL
|
||||||
|
@ -54,6 +54,7 @@ services:
|
|||||||
- chirpstack
|
- chirpstack
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
container_name: postgres
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user