Questions tagged [docker-compose]

Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Laravel Horizon + Nginx Proxy Manager doesn't serve static files on server, but works on local

I am working on deploying my project on self host gitlab with portainer to handle redeploy on webhook trigger, now i have this configuration of docker-compose which starts the api of the project which ...
Max's user avatar
  • 26
0 votes
0 answers
11 views

How can my Node.js server inside a Docker container get the remoteAddress of connecting clients?

What's happening now is that req.socket.remoteAddress is always returning 172.23.0.1 or the like — the IP address of the Docker bridge, not the actual remote address of the client accessing my server. ...
kshetline's user avatar
  • 12.8k
0 votes
0 answers
22 views

Can't connect two containers running on the same docker compose/network

I'm trying to run a script on a container that looks for changes in a collection inside another mongodb container and if new data is there it post the new data to the endpoint of my webapp. Whenever ...
aleyazor's user avatar
0 votes
0 answers
6 views

localstack init.sh script run leads to "PermissionError: [Errno 13] Permission denied: '/etc/localstack/init/ready.d/init-aws.sh'" error

I have a simple init.sh script (creating S3 buckets), which needs to be run in the localstack container after it's ready. Below is my docker compose file localstack: image: ....../localstack/...
Laodao's user avatar
  • 1,587
0 votes
0 answers
30 views

How to run dockerized tests in Gitlab CI?

My app depends on many external binaries to be in $PATH at runtime (in the example I use curl and wget). My idea was to create a base docker stage where all dependencies are installed - and then ...
Josh's user avatar
  • 159
0 votes
1 answer
27 views

sort and update a docker-compose.yaml with jq

This is my docker-compose file: name: movies-docker-test services: movies-rp: volumes: - type: volume source: conf target: /etc/nginx/conf.d - type: volume ...
Nathanaël Blanchet's user avatar
0 votes
0 answers
6 views

Docker compose watch with "sync" action giving error "file exists". "rebuild" works OK

I am trying to configure django project with docker compose watch to sync code changes into the containerized django app. The compose file is as follows: include: compose-db-dev.yaml services: webapp:...
Julian Beggs's user avatar
0 votes
0 answers
17 views

Drupal 10 and Docker do not see code changes

I made a docker-compose file for Drupal 10, but with any edits to the code nothing changes, it's like Docker is caching. version: '3.3' services: mysql: image: mysql:8.0 volumes: - ./....
Igor Bezlepkin's user avatar
0 votes
0 answers
5 views

Dockerizing IONIC React-vite App gives "Connection was Reset" when accessing from Host

I ran into an issue when trying to host my ionic web app in a docker container. Mapping the ports as 8100:8100 should allow me to access through 8100 from my Host, but it didn't. Below were my ...
Cam's user avatar
  • 41
0 votes
3 answers
37 views

Docker volume to keep Loki config and data files

I'm beginner in docker, so I probably don't understand how it should work. I have loki container - here is part of docker-compose.yml: loki: image: grafana/loki:latest ports: - "3100:3100&...
damlit's user avatar
  • 125
0 votes
0 answers
21 views

Access is denied. docker-compose

PS D:\MIPTHW> docker-compose build fork/exec C:\Program Files\Docker\cli-plugins\docker-compose.exe: Access is denied. PS D:\MIPTHW> docker-compose build fork/exec C:\Program Files\Docker\Docker\...
muneee's user avatar
  • 1
0 votes
0 answers
25 views

Is it possible to mount versioned part of a monorepo in a container?

I work with a monorepo hosting every project of the company with a tree like this: Repo : - apps/ - api_1/ - app/ - bin/ - lib/ - spec/ - dockerfile - compose....
Maxime Vincent's user avatar
-1 votes
0 answers
11 views

Bright Spot Training App Landing page giving 404 error

Hi I have just started working on bright spot cms I tried running the training app by running the docker compose file present in the project https://github.com/perfectsense/training/blob/develop/...
java noob's user avatar
0 votes
0 answers
18 views

Cleaning up after "docker-compose down" (removing docker containers after parent container shuts down)

I'am creating docker containers dynamically using a generator container opened via docker-compose I want to clean up all the child containers after I shut down the generator container (docker-compose ...
Lastat's user avatar
  • 1
1 vote
0 answers
11 views

docker-compose --abort-on-container-exit doesn't stop tor services [closed]

I use a tor docker service, which is working in my docker-compose file services: tor: image: dockurr/tor my_task: image: ... I run this with docker-compose up --abort-on-container-exit ...
spraff's user avatar
  • 32.4k
0 votes
0 answers
26 views

Internal Error: EACCES: permission denied, mkdir '/nonexistent'

I have to dockerize a turborepo which has apps that include api and web I have followed the below example https://github.com/vercel/turbo/tree/main/examples/with-docker Dockerfile web FROM node:18 AS ...
chaso's user avatar
  • 1
-1 votes
0 answers
15 views

Podman + Docker problem with communicating via specific ports

guys! See, I have a microservices architecture created with mongodb, apollo graphql, graphql, angular, node, kubernettes, express, nestjs. I've installed it in REHL8, using podman in combination with ...
Technology Complit's user avatar
0 votes
0 answers
18 views

How to include "npm install && npm run dev" command in laravel-sail

I'm trying to include "npm install && npm run dev" command in my sail docker-compose file, so that developers and tester don't have to run then each time starting work or switching ...
Yogesh.galav's user avatar
-1 votes
1 answer
25 views

error getting credentials - err: exit status 1, out: `exit status 2: gpg: decryption failed: No secret key`

Help, I'm set up Airflow in Docker with Ubuntu VM(since Docker Airflow doesn't fully support on Windows). I'm using gpg to credentials and after run docker-compose up init, the package for redis,...
Nein Nein's user avatar
0 votes
1 answer
18 views

service depend-on in the docker-compose

I have two services mongodb and api, they will be started with docker-compose. However, API service needs to wait for mongodb is ready, then start. I know I need to add depend-on, but I don't know how ...
Joe's user avatar
  • 343
0 votes
0 answers
28 views

OperationalError: could not translate host name "db" to address: Name or service not known

I am using django on a project and we are switching from sqlite3 to postgres so we need to add postgres to docker. For some reason the webservice wont connect to postgres. Here is my docker-compose ...
Callie Deas's user avatar
0 votes
0 answers
26 views

Azure Container Instances: host path not allowed as volume source

I'm trying to deploy a multi-container group using Docker Compose. Attempt to execute docker compose up command in Azure context(per this tutorial step) yields following error: host path ("...&...
Max Liapkalo's user avatar
0 votes
1 answer
24 views

Developing outside vs inside of Docker container?

I'm brand new to Docker so I'm sorry if any of this sounds dumb. I've done a bunch of research on this topic but finding hard to understand what the best practice is. For context, I want to start a ...
epsilon's user avatar
0 votes
1 answer
24 views

cannot submit spark application to docker compose

I'm trying to submit a small spark application to a spark cluster on docker-compose. However, it always fails. Here is my spark cluster on docker-compose (I've already had some Kafka broker just ...
Nguyễn Quốc Nhật Minh's user avatar
0 votes
1 answer
23 views

How do I pull and run a docker compose configuration rather than individual images?

I have two applications - one a server and one a webapp - running in one docker container each - let's call them "foo" and "bar". The web app is its own image (Dockerfile-foo) and ...
Vihung's user avatar
  • 13.1k
0 votes
0 answers
10 views

AWS Elastic Container Registry Push commands for my-app not working

Hi every nerds in the planet... WHY IS AWS SO COMPLICATED AND aaaaaah it is getting me crazy , I am trying to push my-app that I built throw docker build and pushing it to the aws but the thing is ...
Milad Zarour's user avatar
0 votes
1 answer
24 views

volume failing in docker but not docker compose [closed]

when starting my docker container, i run this command: docker run -d \ --name metadata-service00 \ -p 8080:8084 \ -v ./FilesToReplace/LogBack/logback.xml:/app/conf/logback.xml \ [docker image]:...
Nir Flatau's user avatar
0 votes
1 answer
20 views

Difficulty Accessing Files Mounted from One Docker Container to Another in Docker Compose

Question: I have a Docker Compose configuration with two containers, "hop" and "py_env" (Python environment). I'm trying to mount the "/opt/hop" folder from the "hop&...
Hans Geber's user avatar
0 votes
1 answer
61 views

Deploy docker-compose in Azure Container Apps with Terraform

I have a docker-compose file intended to use traefik alongside my docker image that I want to deploy as an Azure Container App with terraform. I looked for answers to this and all I found is how to ...
Karim Chaari's user avatar
0 votes
0 answers
26 views

Wordpress development using Vite, pug, scss

I previously developed WordPress themes using Gulp, Webpack, and Docker. The languages I used were Pug, SCSS, and JS. However, this time I attempted to develop a WordPress theme using Vite.js and ...
sora's user avatar
  • 1
0 votes
1 answer
24 views

mysql container created but no default db

My docker-compose.yaml services: db: image: mysql command: --default-authentication-plugin=mysql_native_password environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} ...
realtebo's user avatar
  • 24.3k
-1 votes
1 answer
29 views

How can I dockerize a monorepo(built using turborepo) with hot reload enabled?

This is a monorepo, web and api share the common packages that is the root directory and built using turborepo I need to dockerize a turborepo with hot reload support. Dockerization is only for local ...
chaso's user avatar
  • 1
0 votes
0 answers
29 views

Need to rebuild docker image after syntax error in Node application

I am running a NodeJS app in a docker container, and I am using docker compose watch so I can hot-reload when I make code changes. This works fine until there's a syntax error, which causes the NodeJS ...
ukmasa's user avatar
  • 21
0 votes
1 answer
28 views

Gitlab auto DevOps pipeline with docker

I have a GitLab instance with build and deployment on a remote server. Everything is working as expected but I'm wondering if it is possible to use docker with GitLab's Auto DevOps? In documentation ...
jomal j's user avatar
  • 15
0 votes
0 answers
22 views

Getting a JSON with no data between MongoDB Container and TS+Express Container

I have a RestAPI (TypeScript+Express) which connects to a MongoDB collection, if both of them are running in Docker's containers and I try to get data through an endpoint it retuns a JSON with no data,...
htamayo's user avatar
  • 335
0 votes
1 answer
45 views

Warnings Persist in docker compose up Despite Configured Environment Variables

I'm currently learning Docker, and I've set up a PostgreSQL service using Docker Compose. Although I can access my database without issues, I'm puzzled by persistent warning messages during docker ...
VGontier-cmd's user avatar
0 votes
0 answers
15 views

How can I get PHP8 with OCI8 to connect to a remote Oracle database using oci_connect from inside a Docker container?

I have a vanilla PHP Docker container with Oracle Instant Client installed, and the oci8 extension installed and added to the php ini. I have a pretty bland php script to test the oci_connect method: $...
dbcn's user avatar
  • 238
0 votes
0 answers
16 views

Send file from backend (NodeJS) to frontend (angular)

I am generating a PDF file in my backend. The generated file is stored in Docker. I want to send this file to the client (frontend). I specify that the backend and frontend are in Docker containers. ...
Boguhe Stephane's user avatar
0 votes
0 answers
20 views

Error installing zsh and zsh-vcs packages in Alpine Linux based Docker container using devcontainer.json

I am trying to install zsh and zsh-vcs packages in an Alpine Linux based Docker container to use for Dev Container. I have the following commands in my devcontainer.json: # ... "onCreateCommand&...
Mohammad Ali Amini's user avatar
0 votes
0 answers
12 views

how to run selenium automation suite (smoke.xml) on different env i.e (qa/dev/stage) with docker.cmpose.yaml file?

how to run smkoe suite on different application environments (qa/dev/stage) while using docker-cmpose.yml file, Right now i'm able to run it on one env which i'm passing through testng env variable(qa/...
amit kumar's user avatar
0 votes
0 answers
30 views

web_1 | Error: dictionary changed size during iteration

I have a Django Project. I have dockerized this project to run as container. Currently when I run this container using following command it shows following error at the end and exited docker-compose -...
Usman Rafiq's user avatar
0 votes
2 answers
32 views

Set the default value in the Dockerfile for php.ini

Default value (local value) pdo_mysql.default_socket is null. I want to address Dockerfile when it comes up My DockerFile: FROM php:7.4-fpm RUN apt-get -y update \ && apt-get ...
Mohammad Golmohammadi's user avatar
0 votes
0 answers
21 views

how can I force docker container to stop [closed]

In my project, while reading the file I did something wrong and stuck in an infinite loop, which gives me too much warning. To stop it I have press Ctrl+Z. After that I have tried to stop the ...
Yogendra's user avatar
  • 1,373
0 votes
0 answers
34 views

Dockerize Django and Tailwind CSS [closed]

I'm totally new to Docker. I am developing by scanning templates folders with Tailwind CSS. I use 2 separate commands for development; python manage.py runserver and npm run dev So how do I do this ...
Tolga's user avatar
  • 46
0 votes
1 answer
24 views

Using host SSL cert across Docker containers

Goal I want to make sure the SSL cert that is installed on my host machine can be used by my Docker containers running on that machine. My Setup VM: My virtual machine is a Google Cloud Compute Engine ...
ylime's user avatar
  • 1
-1 votes
1 answer
11 views

im using redis with docker-compose and socket-io and i get undefined value after setting to redis

[[My example code looks like this and its perfecly working fine on localhost i started redis server with docker run -p 6379:6379 -it redis/redis-stack-server:latest command but when i start redis ...
D Galaa's user avatar
-1 votes
0 answers
46 views

.NET Core 7 app error 500 to database when running in a container

Before all i have to say that i am not a expert developer, just know python. I have a three-layer architecture with Angular 16 frontend, .NET Core 7 as backend and SQL Server 2019 as database and it ...
a dysthemic student's user avatar
0 votes
0 answers
53 views

"Could not resolve host" in docker container

I have a project of our company that I decided to transfer from a virtual machine to Windows10/WSL2: When installing docker images, the root certificate is copied: ADD secure/PKI_SVZ.crt /usr/local/...
Basil's user avatar
  • 27
0 votes
1 answer
26 views

EC2 instance with Docker Container connecting to RDS Database from shell but not from website

I created an application that I wanted to deploy online. The app is stored in a directory app and I have another directory called nginx which contains an nginx server that I use as a reverse proxy to ...
Thomas Ravetto's user avatar
0 votes
0 answers
6 views

Redis Testing Client not running in the network and RabbitMQ running but not connected in Docker-Compose

My DockerFile is: FROM node:18-alpine WORKDIR /app COPY . . COPY packageDocker.json package.json RUN npm install --production RUN apk update && apk add lsof CMD ["npm", "start&...
Manik's user avatar
  • 1

1
2 3 4 5
622