Skip to main content
The 2024 Developer Survey results are live! See the results

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.

docker-compose
13,310 questions with no upvoted or accepted answers
19 votes
0 answers
18k views

running network mode “host” on windows 10 with wsl2 and docker

Is there a way to use network mode "host" in the docker container run inside wsl2 using docker desktop? I tried to deploy a docker container inside wsl2 with network mode "host" ...
user8912375's user avatar
16 votes
4 answers
9k views

Docker complains that bind source path doesn't exist, but it DOES

I'm trying to start a mysql container with a host directory mounted. I'm running a single-node swarm in Docker for AWS. But I can't mount a directory... This is the section of the docker-compose file ...
Scott Shorkey's user avatar
14 votes
0 answers
2k views

Docker: Windows does not support host IP addresses in NAT settings

Launching a Docker container with docker-compose fails with: $ docker-compose up Cannot start service NAME: failed to create endpoints NAME on network my_net: Windows does not support host IP ...
Radim's user avatar
  • 4,268
13 votes
3 answers
1k views

Sharing data between docker containers without making data persistent

Let's say I have a docker-compose file with two containers: version: "3" services: app: image: someimage:fpm-alpine volumes: - myvolume:/var/www/html web: image: nginx:...
crsdahl's user avatar
  • 595
12 votes
0 answers
904 views

Visual Studio Docker Compose - stop and remove containers after debug session ends

I have an ASP.NET Core web app for which I have added logging to ElasticSearch & Kibana. I am running it on a Windows host and the containers are Linux. The docker-compose file is set to first ...
Bartosz's user avatar
  • 4,666
11 votes
0 answers
2k views

Docker Compose on ASP.NET Core 2.x and Nginx with HTTPS/SSL

I want to use Nginx as the web server for my ASP.NET Core 2.x project using this tutorial as base. I just omitted the server_name(for multitenancy about to be implemented in the web project). All of ...
eSPiYa's user avatar
  • 932
11 votes
0 answers
4k views

Docker share node_modules to host

i have some scenario that i cant solve. angular 5 application development. docker file that copies the package.json and during the build npm installs the node_modules. and i want those node_modules to ...
pinarella's user avatar
  • 865
11 votes
1 answer
5k views

Yahoo manager error using Docker Ask timed out on [ActorSelection[Anchor(akka://kafka-manager-system/),

In order to replicate this issue run docker run zookeeper then docker-compose up on the below yaml file. I am using zookeeper latest image, wurstmeister/kafka:0.9.0.0-1 and sheepkiller/kafka-manager:...
Mike3355's user avatar
  • 11.9k
11 votes
2 answers
8k views

how to make fail2ban read json docker logs

Is it possible to configure my fail2ban jail.conf to inspect the docker logs instead of mounting the log in the host. for example to set the logpath to the path of the log of the container. Jail....
Octo's user avatar
  • 241
11 votes
1 answer
6k views

Redis is shutting down for no reason in docker container

I am trying to launch a redis docker container using docker-compose, but I always get this error. This is my docker-compose run commands docker-compose -f docker-compose.yml build and docker-compose -...
joethemow's user avatar
  • 1,733
10 votes
1 answer
5k views

Automatically deploying docker-compose on DigitalOcean via Github

I am a newbie when it comes to docker. I have a web app that contains 4 services. I manage to create a docker-compose for it. I would like now to publish it. My plan is to upload the whole repository ...
Gil SH's user avatar
  • 3,848
10 votes
0 answers
5k views

Change source path of volume

This dockerfile works as expected. But the problem is that I am not able to change the source of volume. version: "3.5" services: mysql: environment: MYSQL_ROOT_PASSWORD: india3391 ...
shantanuo's user avatar
  • 32.2k
10 votes
1 answer
6k views

Alert message not showing up in slack using prometheus and alertmanager

I am trying to get the alert found by Prometheus to be notified in slack using alertmanager. This is the alert.rules file and is working fine groups: - name: Instances rules: # Alert for any ...
Tara Prasad Gurung's user avatar
10 votes
2 answers
7k views

No module named django error when running any manage.py command in docker with docker-compose

I'm getting ImportError: No module named django when trying to up my containers running docker-compose up. Here's my scenario: Dockerfile FROM python:2.7 ENV PYTHONUNBUFFERED 1 RUN mkdir /code ...
Igor Belo's user avatar
  • 738
10 votes
0 answers
1k views

How to create read-only user in the Docker Registry v2?

I'd like to have 2 users in Docker Registry v2: user1 - read-write (pull-push) user2 - read-only (pull only) How to create read-only user ?
Sergey Fadeev's user avatar

15 30 50 per page
1
2 3 4 5
888