Questions tagged as 'docker-compose'

1
answer

Doubt as to the marking "volumes" inside docker-compose.yml

The docker-compose.yml below was taken from the docker documentation itself. My question is: why in the db container do we have the volume reference and at the end of the file the same reference is repeated? What does it mean? version: '3' se...
asked by 08.10.2017 / 04:43
1
answer

Docker push - Send the image to the Docker Hub

Alright? Can anyone help me with the following problem? First I logged in to Docker by running the command: $ docker login It includes the registered user and password, however I'm having problems sending an image to the Docker Hub. W...
asked by 05.12.2018 / 02:44
1
answer

How to configure docker compose with equivalent for -d (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 docker-compose.yml would be: version: '2' services: mysql...
asked by 21.12.2017 / 21:18
1
answer

How to make the IDE communicate with xDebug inside a container (docker)?

I have a container network created with docker-compose . The xDebug settings are passed in part by the .yml file and partly by a .ini file consumed by PHP. I know xdebug is installed correctly in the container because it a...
asked by 13.03.2017 / 04:28
1
answer

Database connection problem with Docker

I migrated my application to a Docker container, it was working fine, until one moment I had to change the bank population scripts and I recreated the bank, however I had this problem that I do not know how to solve, I already tried to modify th...
asked by 23.07.2018 / 19:48
1
answer

Adding PHP Extensions in Docker Compose

What would be the best way to add PHP extensions like the GD library among others directly in docker-compose.yml? My file is as below: nginx: image: tutum/nginx ports: - "80:80" links: - phpfpm volumes:...
asked by 05.08.2018 / 20:36
1
answer

How to assign retrieve the ip of a service inside the docker-composer?

I am trying to get zabbix in docker, I created a docker-compose with several services, one of them is the database. I need to raise the database first and then get the ip of the database and set the environment variable for other services, howev...
asked by 13.07.2018 / 23:19
1
answer

Change the docker-compose reflects in the current container?

If I change the exposed port on my docker-compose , does it change the current container when I run docker-compose up -d ?     
asked by 18.10.2017 / 15:03
2
answers

Doubts the configuration of docker-compose and Dockerfile

Upload a small development environment. There are 2 containers: mysql (mysql: 5.7) web (php: 7.1-apache) My question is in a docker-compose.yml and Dockerfile configuration parameter, respectively: ports EXPOSE What's the diffe...
asked by 06.10.2017 / 17:50
1
answer

remove files from inside the container after the build. Can you do it?

How to delete files after build? I am "building" an image with a google cloud key, so I can not leave this key inside the container, for security reasons. The problem is that if I do not, google cloud will not authenticate. Or is there another w...
asked by 04.12.2017 / 15:57