Questions tagged as 'docker-compose'

1
answer

Connecting Go with MongoDB using Docker

I'm creating a microservice in Go, using MongoDB as the database and using the mgo library. Using MongoDB in a docker container locally and running the application on my machine, everything works normally, but when I tried to run using...
asked by 13.12.2017 / 21:42
2
answers

nginx does not display index php

So guys, I think it's some configuration on the server that is not displaying the error page, I am running a docker-compose that "uploads" a container php, mysql, and nginx , however, when accessing localhost I get the following error:...
asked by 01.11.2017 / 03:59
2
answers

Status 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 have a problem to run the command: $ docker-compose up I created a Dockerfile in the root of my project to create a container with the mai...
asked by 18.06.2018 / 16:07
1
answer

Docker always checks if the local image is the same or lower version than the official Docker Hub repository?

When raising a new application, you do not have the image locally, so Docker will get the image that is the base of the container. Once the image has been downloaded, Docker goes up the container. The application is there running. But if there i...
asked by 03.05.2018 / 16:12
1
answer

Docker compose does not work using proxy

I am creating a docker-compose file to upload a multi-node system. To start testing, I created only one service in this file docker-compose.yml : version: '3' networks: production-network: driver: bridge services: node1:...
asked by 01.10.2018 / 17:39
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

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

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

Docker Compose Link

I'm using Docker Compose to upload a set of three "Selenium Grid" containers: selenium-hub: image: selenium/hub container_name: selenium-hub ports: - 4444:4444 nodeff: image: selenium/node-firefox ports: - 5900 links:...
asked by 06.10.2017 / 14:58