Set dsn and container name for postgre integration
This commit is contained in:
parent
bebb9e9e9d
commit
8f4bbf118c
@ -106,6 +106,6 @@
|
||||
json=true
|
||||
|
||||
[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
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
create role chirpstack with login password 'chirpstack';
|
||||
create database chirpstack_integration with owner chirpstack;
|
||||
EOSQL
|
||||
|
@ -54,6 +54,7 @@ services:
|
||||
- chirpstack
|
||||
|
||||
postgres:
|
||||
container_name: postgres
|
||||
image: postgres:14-alpine
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user