Set dsn and container name for postgre integration

This commit is contained in:
Staņislavs 2023-12-05 13:57:11 +02:00
parent bebb9e9e9d
commit 8f4bbf118c
3 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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

View File

@ -54,6 +54,7 @@ services:
- chirpstack
postgres:
container_name: postgres
image: postgres:14-alpine
restart: unless-stopped
ports: