All Questions
59 questions
0
votes
1
answer
235
views
dial tcp: lookup db on x.x.x.x:5433: no such host
I have a simple docker file that contains a database and is perfectly deployed, but when connecting to the database from outside, the following error is displayed:
dial tcp: lookup db on x.x.x.x:53: ...
1
vote
1
answer
289
views
How to run Golang backend with PostgreSQL DB and Redis using Docker?
I have a project with Golang backend, PostgreSQL DB and Redis.
I need to init PostgreSQL DB with this SQL:
ALTER USER postgres WITH password '123';
CREATE TABLE users
(
username VARCHAR (200) ...
0
votes
1
answer
161
views
Unable to connect to Postgres running in docker
For a golang back-end, I am using Postgres as database everything works fine locally. But I can't seem to run the docker-compose file.
version: '3.8'
services:
app:
build: .
ports:
# -...
-1
votes
1
answer
157
views
Deploying Go app with Docker Compose: dial tcp [::1]:5432: connect: connection refused
I'm trying to deploy a Golang app using Docker Compose but unfortunately the PostgreSQL DB connection isn't working, and I really don't know why.
Here's my docker-compose.yml file:
services:
db:
...
3
votes
1
answer
544
views
Can't use migration to one database from two different services on Golang from Docker
I have a problem migrating PostgreSQL between two applications written on Golang inside Docker.
Only one table is created, which was migrated first through the Docker container.
I use the Migration ...
2
votes
1
answer
150
views
Get the CSV file data in Docker compose?
I have a CLI application that gets the CSV file from the PostgreSQL database. Although running the code creates the CSV file and puts the data into CSV but running the application through docker ...
1
vote
1
answer
1k
views
read udp: io/timeout in the docker compose
I have a problem running the docker image. I have a simple application connecting with PostgreSQL and I wrote the Dockerfile and docker-compose file to create the images of this application.
There are ...
0
votes
1
answer
656
views
Docker-compose with Golang and Postgres connection is refused
I am trying to make the connection with PostgreSQL using Docker Compose. I have a Golang CLI application called flow and it creates, views, adjust's, gets, and removes the budget information.
When I ...
0
votes
2
answers
110
views
Couldn't connect to Postgres DB on Docker image via pgadmin, psql, or golang app
I'm trying to learn about how to make a docker container with a simple golang API that relies on a postgres database. My problems are two-fold:
Attempting to connect to the postgres DB would yield me ...
1
vote
1
answer
239
views
Connection refused when golang app tries to connect to postgresql in docker-compose
I'm trying to run a golang app and a postgres server inside a docker-compose file.
Bu it returns the following error in the golang app:
2023/12/16 17:57:44 Connecting to postgres database postgres://...
0
votes
1
answer
1k
views
jaeger-all-in-one docker-compose.yaml configurations to store traces to postgresql
Currently, I am using docker-compose.yaml file with a collector-gateway.yaml file as the otel collector for the traces to be sent up to jaeger. What i am trying to achieve is data persistence with ...
2
votes
1
answer
753
views
Cannot connect to postgres docker container from golang's docker container
I'm trying to connect to the docker container's postgresdb database from Golang Fibers container. When I run my postgres continer and run go project locally it could connect to the postgres's ...
1
vote
0
answers
462
views
failed to initialize database, dial error (dial tcp 192.168.32.2:5432: connect: connection refused)
GO, Gorm, Postgres, Docker
Error -> [error] failed to initialize database, got error failed to connect to host=amazon-shopping-backend-db-1 user=postgres database=postgres: dial error (dial tcp ...
1
vote
0
answers
81
views
Failed to connect to Postgres container to Go container
I am trying to connect my Go container with my postgres-alpine container. But, I can not able to connect to connect it.
I am getting the following error
web_1 | [error] failed to initialize database, ...
1
vote
1
answer
474
views
Socket hang up on Postman when making request to Golang app
I've built a CRUD app in golang folloing this tutorial: https://www.youtube.com/live/aLVJY-1dKz8?feature=shared
I've connected to the DB and created the postgres tables using PgAdmin.
The services are ...