Questions tagged as 'docker'

2
answers

Doubt regarding file structure docker-compose.yml

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 command: ['--charac...
asked by 14.01.2018 / 15:15
1
answer

Docker - Mysql + PHP error when connecting to mysql

I'm learning a little about Docker, but I had some problems connecting to Mysql. Follow the file docker-compose.yml php: build: . ports: - "8082:80" volumes: - ./www:/var/www/html links: - db db: image: mysql:5.7 ports:...
asked by 24.10.2017 / 18:56
1
answer

When to use ADD or COPY to copy files to a Dockerfile?

The Dockerfile syntax has two instructions for copying files: ADD and COPY . Both copy files to the container. When to use each?     
asked by 04.05.2017 / 21:14
1
answer

How to change the subnet of Docker?

I'm on a network that uses the IP range 172.17.42.1 , unfortunately the same as Docker. Because of this I can no longer access my local network because the two networks conflict. Is it possible to change the IP address of Docker?     
asked by 13.09.2015 / 02:41
1
answer

Microservices and Clusters

Good morning. I have a question about clusters and microservices. What is the correct way to deploy a microservice, one per cluster? Or could it be more? I will illustrate: I have an app that is made up of 10 microservices. Each microservic...
asked by 13.09.2018 / 16:25
1
answer

Host docker network [closed]

I have a problem with the server, but I can not find a way to connect to it. I have a problem with this: on my local network and docker the network is only on my machine? Example: ip of the container = 172.18.0.2 Ip of my sql server = 192.168...
asked by 07.03.2018 / 02:05
1
answer

What is the real usefulness of docker-php-ext-configure and docker-php-ext-install?

I'm getting started with Docker, so the question came, what's the docker-php-ext-configure and docker-php-ext-install ? Example: RUN apt-get install -y libpq-dev libsqlite3-dev RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pg...
asked by 06.10.2017 / 21:16
1
answer

Problem with Dockerfile

I'm trying to generate an image, however I'm getting the error: E: Command line option 'O' [from -O] is not understood in combination My Dockerfile: FROM debian:stretch MAINTAINER Fabio J L Ferreira <[email protected]> RUN...
asked by 06.10.2017 / 03:51
1
answer

How 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 ports as UDP. version: "3.0" services: myservice: image: "my/service" ports: - "40061:4061" - "40062:4062" - "5684:5684" &l...
asked by 06.09.2017 / 22:56
1
answer

Save Spring Boot request

I'm a beginner in Spring Boot and I need a little help. I want to save an incoming and outgoing request, generating the automatic id and saving the date and time, using docker and Postgres (I do not know if it changes either to say that I'm usin...
asked by 14.07.2018 / 18:07