Most voted "docker-compose" questions
Docker-Compose is a tool that assists the use and configuration of multiple Docker containers, assisting configuration from development to production environments.
Learn more…114 questions
Sort by count of
-
10
votes2
answers2220
viewsWhat is the difference between Docker-Compose and Dockerfile?
What is the difference between Docker-Compose and Dockerfile, specifically? Docker-Compose uses Dockerfile or vice versa? Can I make every configuration with just one of them? If so, which?…
-
5
votes2
answers183
viewsDocker Compose image container
How to connect 3 images in Docker-Compose ? i would like Elasticsearch, Kibana and panthomJS to be inserted in only 1 container, but I only got Elasticsearch with Kibana. How can I do that? Any…
-
5
votes1
answer2838
viewsDocker Compose Link
I am using Docker Compose to climb a set of three containers "Selenium Grid": selenium-hub: image: selenium/hub container_name: selenium-hub ports: - 4444:4444 nodeff: image: selenium/node-firefox…
-
5
votes1
answer647
viewsConnecting Go with Mongodb using Docker
I am creating a microservice in Go, using Mongodb as a database and using the library mgo. Using Mongodb in a Docker container locally and running the application on my machine, everything works…
-
4
votes1
answer2689
viewsHow to access the local host from a Docker container?
I’m starting now with Docker and I’m lost in a small detail, I mounted an Ubuntu image with Apache, PHP 7 and the extension connection with SQL Server. How do I access the SQL Server server if it is…
-
4
votes2
answers2564
viewsDoubt about marking "volumes" inside the Docker-Compose.yml
The Docker-Compose.yml below has been taken from the Docker documentation itself. My question is: why inside the db container we have the reference of volumes and at the end of the file the same…
-
4
votes2
answers940
viewsStatus Exited (0) after a Docker-Compose up command
I’m starting to work with Docker now, I understand the concepts of images and containers but I’m having a problem running the command: $ docker-compose up I created a Dockerfile at the root of my…
-
3
votes2
answers1212
viewsNginx does not show index php
So guys I think it’s some configuration on the server that’s not showing the error page, I’m running a docker-compose that "goes up" a container php, mysql and Nginx but when accessing localhost…
-
2
votes1
answer324
viewsHow to expose UDP ports in the Docker-Compose configuration file?
I have the following file docker-compose.yml and would like to expose some of the doors as UDP. version: "3.0" services: myservice: image: "my/service" ports: - "40061:4061" - "40062:4062" -…
-
2
votes1
answer1568
viewsDocker - Mysql + PHP error when connecting with mysql
I’m learning a little about Docker, but I had some problems connecting with Mysql. Follow the file Docker-Compose.yml php: build: . ports: - "8082:80" volumes: - ./www:/var/www/html links: - db db:…
-
2
votes2
answers584
viewsDoubt regarding the structure of the Docker-Compose.yml file
I have the following file Docker-Compose.yml: version: "3.3" services: mysql: container_name: mysql image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: senha_root MYSQL_DATABASE: database_name…
-
2
votes0
answers123
viewsHow to fix strange Docker bug?
In a few days ago I started my study with Docker, I took one of those courses from cod3r, seemed beautiful and wonderful. And then I started experimenting with Spring Boot, it’s an archive JAR that…
-
2
votes2
answers99
viewsShould I use a Docker-Compose.yml or multiple
Good morning, The architecture of my project is micro-services that are in Docker containers. In which I have a Docker-Compose.yml file for all micro-services. My question is this: It’s best to have…
-
2
votes1
answer983
viewsDocker Compose does not work using proxy
I’m creating a file docker-compose to upload a system with multiple nodes. To start testing, I created only one service in that file docker-compose.yml: version: '3' networks: production-network:…
-
2
votes1
answer955
viewsDocker push - Send image to Docker Hub
all right? Can anyone help me in the following problem? I first logged in to Docker, running the command: $ docker login Includes registered user and password, but I’m having trouble sending an…
-
2
votes1
answer329
viewsError While climbing Docker container
When I give a Docker-Compose up, the container goes up normally, but when I access the localhost, from error 500, the page is not working, and in the console the following error text appears. I’m…
-
1
votes1
answer152
viewsHow do IDE communicate with Xdebug inside a container (Docker)?
I have a network of containers created with docker-compose. The Xdebug settings are passed in part by the file .yml and in part by an archive .ini consumed by PHP. I know that Xdebug is installed…
-
1
votes2
answers3280
viewsConfigure Mysql Workbench on Docker
I want to set up my Workbench so that you can connect to the mysql that is running on my Docker server, but when I try to test the connection, I always get the following error: I created my Mysql…
-
1
votes1
answer470
viewsDocker Compose Link and Network
I’m using Docker Compose to climb my containers in the Docker, the problem I’m having is making the link between a container and another. My Docker Compose: version: '3' services: DB: image:…
-
1
votes1
answer63
viewsHow to run a Docker container with private Ownership?
When using portainer.io in version 1.14.2 and listing all containers you can see the Ownership column. Through the portainer interface it is possible to modify to private and change the access…
-
1
votes1
answer513
viewsDoes changing the Docker-Compose reflect in the current container?
In case I change the door exposed in mine docker-compose, when rotating docker-compose up -d this change will reflect on the current container?
-
1
votes1
answer385
viewsremove files from the container after build. Can I do this?
How to delete files after build? I am "building" an image with a google cloud key, so I can’t leave this key inside the container, for security reasons. The problem is that if I don’t get it, the…
-
1
votes2
answers1060
viewsDoubts about the Docker-Compose and Dockerfile configuration
I went up a small development environment. There are 2 containers: mysql (mysql:5.7) web (php:7.1-apache) My question is in a configuration parameter of Docker-Compose.yml and Dockerfile…
-
1
votes1
answer195
viewsHow to configure Docker Compose with equivalent to -d option (detach)
The following command runs a container with mysql in the background. docker run -d -p 3306:3306 -e MYSQL_RANDOM_ROOT_PASSWORD=yes --name mysqldb mysql The equivalent with the docker-compose.yml…
docker-composeasked 7 years ago nbkhope 1,360 -
1
votes1
answer510
viewsDoes Docker always check that the local image is of the same or lower version as the official Docker Hub repository?
When lifting a new application, you don’t have the image locally, so Docker fetches the image that is the container’s base. Once the image has been downloaded, Docker raises the container. The…
-
1
votes1
answer441
viewsDocker-Compose Spring boo and Mongodb: Connection Refused
I’m studying Docker, and I’m trying to run a small application made in Springboot along with Mongodb in a single container. I wrote the following Dockerfile: FROM openjdk:8-jre-alpine ENV…
-
1
votes1
answer314
viewsDocker Container does not start
I’m a beginner in Docker and I’m trying to create a development environment with ngix mysql and php using Laradock, I have in my machine Docker installed, I tried to follow the steps of…
-
1
votes1
answer133
viewsAlways include arguments when running Docker-Compose run
I have a question about passing arguments in the Docker-Compose run: I’m wearing a Dockerfile which has the following entrypoint: ENTRYPOINT [ "/bin/wp" ] CMD [ "--allow-root", "--help" ] I need the…
-
1
votes0
answers454
viewsError changing password (MYSQL_ROOT_PASSWORD), in Mysql Docker.compose.yml file
I had to recently change the administrator password of my database (currently using Mysql), changed the password 'MYSQL_ROOT_PASSWORD' but did not reflect changes in my container. I tried to delete,…
-
1
votes1
answer701
viewsProblem with Docker Pdo installation
I’m having a problem with my containers in Docker, I was trying to raise a Lamp with Docker Compose, with the default image of php:apache and mysql, but when I install PDO this error appears.…
-
1
votes0
answers39
viewsIs it necessary to use any CI tool to build and build Docker-Compose with Maven?
I am building a web application with Spring MVC and Postgres, my problem here is with using pom.xml to create a Docker-Compose file to deploy in containers. Is it possible to add commands to pom.xml…
-
1
votes1
answer412
viewsHow to run Dockerfile inside Docker-Compose.yml?
This is a generic skeleton of a Docker-Compose.yml file version: '3' services: db: image: mongo:3.4 backend: image: node:8.1 volumes: -./backend:/backend ports: - 3000:3000 command: bash -c "cd…
-
1
votes0
answers72
viewsHow do I make my application run on Docker Compose?
Note the error message; DESKTOP-LTE4439+resource@DESKTOP-LTE4439 MINGW64 /c/docker/teste $ docker-compose up postgres is up-to-date Starting teste_java_1 ... done Attaching to postgres, teste_java_1…
-
1
votes1
answer78
viewsHow to assign recover ip from a service within Docker-Composer?
I’m trying to raise Zabbix on Docker, I created a Docker-Compose with several services, one of them is the database. I need to survey the database first and then take the IP of the database and set…
-
1
votes1
answer1180
viewsDocker Database Connection Problem
I migrated my application to a Docker container, it was working all right, until a moment I had to change the bank’s population scripts and recreate the bank, but I had this problem that I do not…
-
1
votes1
answer359
viewsAdd PHP Extensions to Docker Compose
what would be the best way to add PHP extensions such as the GD library and more directly into Docker-Compose.yml? My file is as below: nginx: image: tutum/nginx ports: - "80:80" links: - phpfpm…
-
1
votes0
answers46
viewsError loading container in Docker-Compose: `Cannot start service php-fpm: Apparmor...`
It was working normally on my Ubuntu since last week, no update was made, and now, when I try to assemble containers using Laradock, get this: $ docker-compose up -d apache2 mysql Starting…
-
1
votes1
answer87
viewsWhy use Docker to program?
Using a Docker container for a database is easy to understand the need, because I don’t need to install anything on my machine, everything is in the container. But what I don’t understand is the…
-
1
votes1
answer1211
viewsAccess files outside the project root folder (Web Development)
I’m working on a web system using Docker with Nginx. And I am not being able to access files that are not in the root folder of the project, if possible I would like to understand what is happening…
-
1
votes1
answer241
viewsDocker
I am setting up a development environment with Docker. In it I need NGINX (webservice) PHP 7.2 (app) MARIADB 10.3 (database) In the container app I must install Composer, I will work using Windows.…
-
1
votes1
answer1821
viewsHow do I fix my Docker-Compose.yml? expected <block end>, but found '<block Mapping start>'
$ docker-compose up ERROR: yaml.parser.ParserError: while parsing a block mapping in ".\docker-compose.yml", line 3, column 4 expected <block end>, but found '<block mapping start>' in…
-
1
votes0
answers40
viewsDocker: How do I refer a service defined in a container in another?
I have some sites in a VPS running with Docker-Compose, on the same network and using proxy. The structure is more or less this: . ├── nginx-proxy │ └── docker-compose.yml └── blogs └──…
-
1
votes0
answers90
viewsDoubt about CI/CD to build and release Docker containers?
I am building a Docker container release pipeline in Gitlab and Azure Devops. But I came across the following situation: Step do build: docker build -f ./caminho_docker_file -t nome_minha_imagem .…
-
1
votes1
answer129
viewsProblem trying to connect Mongodb via Docker-Compose with Robo3t. How to complete the connection?
I want to make a connection through Robo3t of a Mongodb database that is running via Docker-Compose. version: '3' services: mongo-express: image: mongo-express container_name: mongo-express ports: -…
-
1
votes1
answer201
viewsexecute Docker/Docker-Compose commands on external folder
I created a simple LAMP server using Docker/Docker-Compose, I was able to initialize the containers pointing to an external folder to which the Docker files are, the problem is that I need to run…
-
1
votes1
answer529
viewsLocalstack starts on Docker, but I can’t access
I run a "Docker Compose" to start a localstack instance with the S3 service. It raises normally, but when trying to use AWS CLI to access it I get the following error: > aws…
-
1
votes0
answers45
viewsPerform automatic backup using Docker
My application is composed of Frontend (Vue.js) + Backend (Node.js with postgresql bank), before playing in production I dockerizei using Docker and Docker-Compose. The file below is…
-
0
votes0
answers282
viewsCreate super user inside a Docker container that this used with Compose
I have a Jango project that is running with Docker-Compose, what I need to do and very simple, run python Manage.py createsuperuser, however, even setting the command via dockerfile or in . Compose…
-
0
votes2
answers579
viewsHow to make Curl between containers?
I started using Docker a short time ago, probably why I got stuck in this problem. I have a API and a Front who keeps making requests via Curl for her. But when I put these projects on Docker and…
-
0
votes2
answers363
viewsSet domain to Docker-Compose container
I’m starting to use Docker-Compose and would like to know how to set up a domain for my apache container via Docker-Compose.yml? Currently to access my container I type localhost:3000. cms:…