32,398 questions
-2
votes
1
answer
98
views
Python in a Docker Container refused connection to Postgres in a networked Docker Container
I am trying to connect from a python script to a postgres database. Here's my docker-compose:
networks:
backend:
name: value_tracker_backend
external: true
services:
db:
build:
...
0
votes
0
answers
55
views
Postgres Docker won't setup properly [duplicate]
I'm not really sure what's the issue here. I wrote a rather "generic" docker-compose.yml for Postgres, but neither won't it do its own setup properly, nor can any of the other containers (...
3
votes
0
answers
189
views
Docker compose watch fails restart container
I'm developing an app with Go and to speedup my dev experience I want to leverage docker compose watch to have hot reloading. I've already used this strategy but this time I always get this error ...
1
vote
1
answer
49
views
Why does a Spring microservice instance with multiple networks register itself with ip address from a network not related to eureka?
I have a problem with containerization Spring microservices.
For example, there are two Spring services (serviceA, serviceB), database, discovery server and Spring API gateway. Two docker networks ...
0
votes
0
answers
42
views
Init script executes successfully but no effect
ArangoDB is executed in a docker environment and an init script is provided successfully. It is executed at startup of ArangoDB.
This script is executed without errors in any case (see log at bottom). ...
0
votes
0
answers
73
views
How do I pass a build argument via docker compose file to override the CMD?
This is at the end of my Dockerfile:
CMD ./run.sh
I want to be able to change the CMD value with a build argument defined in my docker-compose.yml file, like this:
myapp:
build:
args:
...
2
votes
0
answers
119
views
Postgres container password authentication failed for user "admin"
I am building a microservices application using Spring Boot, and I am running two distinct postgres containers on docker for two of the microservices running on my local machine (Windows 10). The ...
0
votes
1
answer
97
views
Unable to Authenticate to Docker image via Golang
I am new to Docker and Golang. I am trying to run Golang server locally and connect it with my postgres docker image.Basically I want the DB to run as docker container with persitant volume
Error
PS C:...
0
votes
0
answers
79
views
GitHub Actions + Docker: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed
I'm setting up GitHub Actions for a Laravel project using Docker.
During the workflow run, I get the following error when Laravel tries to connect to the MySQL container:
SQLSTATE[HY000] [2002] ...
1
vote
0
answers
84
views
Conditional sidecars in devcontainer?
I configured a devcontainer using a docker-compose.yaml. The „sidecars“ are a database and a Keycloak instance. It works well.
The Keycloak is only needed in some scenarios, so I’m looking for a way ...
1
vote
2
answers
57
views
Docker, cannot locate secrets folders during image build
I am trying to run a container on docker, i have a Dockerfile for building image, and compose.yml for multi-container configurations, note that I am using Next.js to develop my app.
Dockerfile
# First ...
1
vote
1
answer
71
views
COPY instruction does not COPY certain files [closed]
I'm trying to build an image for local development. To do so, I'm using a specific Dockerfile and a specific docker-compose file.
This is the Dockerfile.local file:
FROM golang:1.23-alpine3.19
RUN apk ...
-2
votes
1
answer
70
views
Launching a docker compose service using a profile and then stopping it [closed]
I have the following services:
ServiceA - proifles: [support, default]
ServiceB - profiles: [support, default]
ServiceC - profiles: [default]
If I do the following:
docker compose --profile support ...
0
votes
1
answer
308
views
Getting a "connection refused" error when attempting to upload metrics to an OpenTelemetry collector
I'm trying to build a simplified example of a Go application which exports metrics using OpenTelemetry and visualizes them in Grafana. I have the following directory structure:
.
├── docker-compose....
1
vote
2
answers
102
views
Docker containers can't see files from other containers
I want my client and server (and more later) containers to share an image folder
I have my docker compose like this:
client:
build:
context: ./admin/client
args:
NODE_VERSION:...
0
votes
0
answers
55
views
PyP100 Tapo‑Plug control works with docker run but fails with docker compose run/up (“Failed to initialize protocol”)
I have a Python application using PyP100 to control a TP‑Link Tapo smart plug. Specifically I'm using almottier's fork. I need to use it in a docker container.
When I build and launch my Docker image ...
1
vote
2
answers
194
views
Dockerized NestJS + Prisma backend
I am building a full‑stack application using Docker Compose, with separate services for frontend (Next.js), backend (NestJS + Prisma) and a PostgreSQL database. I would like to do all development—...
0
votes
2
answers
77
views
Running a ddev exec via docker compose file on project start in WSL2
I have a Symfony project running in container via WSL2. There is a messenger worker that I would like to start automatically when starting the project with ddev start. To start the worker manually, I ...
0
votes
0
answers
98
views
Hot reload problem in NextJs15.3 + Traefik
I have a multi-container application (database, clientside, serverside and traefik). When I simply up project and expose 3000 port for clientside and access it in browser (localhost:3000) it works ...
1
vote
1
answer
247
views
docker compose - grant access to volume for container user
Using docker v4.42.1 under WSL2 on windows.
I have a windows directory d:\bob that I have mounted as a volume in my docker container under /app/data.
I've created a SQL Server compose file that sets ...
0
votes
0
answers
83
views
/liquibase/changelog/master.yaml does not exist
I'm running Liquibase with Docker Compose to apply PostgreSQL database migrations. Although master.yaml exists inside the container and is mounted correctly, I keep getting this error:
/liquibase/...
0
votes
1
answer
59
views
Unable to connect to redis with spring boot using docker
I am trying to setup redis in my spring app using docker without obtaining any successful logging of what is going bad.
docker-compose.yml
version: '3.8'
services:
redis:
image: redis:7.2-alpine
...
0
votes
1
answer
63
views
How should I define redirect request properly
I have a social network project for users to share their recipes. The Recipe objects managed by a ViewSet, which has Serializer, where create and update recipes operations defined, via POST and PATCH ...
0
votes
0
answers
38
views
How can I configure Dex to issue a token from Google Cloud (GCP) for Artifact Registry, Cloud Storage and Vertex AI?
There's little documentation in this regard.
The problem:
I'm trying to use OIDC to authenticate to Google Cloud.
What for:
Pull a Docker image within Artifact Registry to launch a web app in a VPS (...
0
votes
1
answer
88
views
Why is my environment variables missing in .next build files, but is present when I ssh into container
I noticed my environment variables missing in .next build files, but is present when I ssh into container, it's present in the shell and REPL.
When I check the app out this NEXT_PUBLIC_API_URL default ...