-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing information/config for postgres from docker linux installation guide #428
Comments
Can confirm that following instructions doesn't lead to success. Also, using the |
@pomali I tried the provided
How can this be fixed ? Thanks for your time. |
This looks like if |
It does read environment variables, apparently: $ docker-compose run mytbpe /bin/bash
Starting thingsboard_postgres_1 ... done
thingsboard@cf53e2d73fc3:/$ echo $SPRING_DATASOURCE_URL
jdbc:postgresql://postgres:5432/thingsboard I tried touching up the version: "3.4"
services:
mytbpe:
restart: always
image: "thingsboard/tb-postgres"
depends_on:
- postgres
ports:
- "8080:9090"
- "1883:1883"
- "5683:5683/udp"
environment:
- TB_QUEUE_TYPE=in-memory
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWOR= postgres
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/thingsboard
volumes:
- ~/.mytb-data:/data
- ~/.mytb-logs:/var/log/thingsboard
postgres:
restart: always
image: "postgres:11.6"
ports:
- "5432"
environment:
- POSTGRES_DB=thingsboard
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ~/.mytb-data/db:/var/lib/postgresql/data I added a |
Also, adding more specifically to this issue: there are instructions here that are completely different from what's currently in documentation. Or maybe I missed something? |
I had it working once with docker-compolse.yml as above. Then I wanted to upgrade to 3.2 and it failed. Removing volumes and recreating doesn't solve the problem as well. I also get |
Still not updated. |
Still not updated. Can we get some clarity on what is the correct way to install using Docker? |
Hi Bogdan,
It seems you have removed your reply from this issue. Can you update on the
plan for this please?
Kind regards,
André
…On Thu, Jun 3, 2021 at 10:24 AM Bogdan ***@***.***> wrote:
Hello everyone.
I'm confirm this case. Working on fix.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#428 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHXU6I2RT65VWV6TCEINLBLTQ5C3XANCNFSM4SMYIFXQ>
.
--
Regards,
André
|
Hello, yes. I'm confirm problems with docker image. Postgres cant initialize the database inside of container. Waiting for news from our developers. |
Hi @trypzz, Is there any progress on this? or any intermediate suggestion please? |
Temporary you can change permission on docker.sock by this command |
This is a...
Problem:
Documentation for Docker for Linux/Mac is missing information about postgres
https://thingsboard.io/docs/user-guide/install/docker/?ubuntuThingsboardQueue=inmemory
When you are installing based on this documentation you have no idea that there should be postgres installed somewhere, it is missing from "Prerequisites" and there is no mention about it in text. So you end up with
org.postgresql.util.PSQLException: FATAL: database "thingsboard" does not exist
error.Proposed Solution:
Based on issue thingsboard/thingsboard#3347 there is example docker-compose.yml that has postgres included which fixes problem with missing postgres.
docker-compose.yml
Page to Update:
https://thingsboard.io/docs/user-guide/install/docker/?ubuntuThingsboardQueue=inmemory
I don't mid creating PR but wasn't sure that this is preferred solution
The text was updated successfully, but these errors were encountered: