docker-compose

How to fix dynamodb local call using docker-compose

二次信任 提交于 2020-01-16 08:07:12
问题 I'm starting a springboot app and dynamodb local in docker containers via docker-compose. Both containers come up successfully. When I use the container name for the AMAZON_AWS_DYNAMODB_ENDPOINT value, I get the following error: [https-jsse-nio-8443-exec-6] [2019-04-15 08:03:42,239] INFO com.amazonaws.protocol.json.JsonContent [] - Unable to parse HTTP response content com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String,

How to copy files from docker container to host using docker-compose in docker-machine

久未见 提交于 2020-01-15 11:23:57
问题 I have reports generated in gradle container for my selenium tests, I am trying to copy the files from docker container to local host. As a work around, I have used docker cp to copy files from container to my local and it works. How to achieve it with docker-compose volumes. Below is my docker-compose.yml version: "3 " services: selenium-hub: image: selenium/hub container_name: selenium-hub_compose ports: - "4444:4444" chrome: image: selenium/node-chrome-debug container_name: selenium-chrome

Geting the private ip for the docker network from within the container to configure xdebug remote_host

本小妞迷上赌 提交于 2020-01-15 10:25:07
问题 So using docker and docker-compose I like to provide tools built into the containers so that other people in the development team don't have to struggle with setting up bits and bobs. In this specific case I'm having issues configuring xdebug. It works absolutely fine using connect back when debugging from a browser. But trying to get xdebug working through the cli inside the container is being an absolute nightmare. For some reason it requires (along with remote_autostart=1) the remote_host

Debug rails app inside docker use Intellij/Rubymine

依然范特西╮ 提交于 2020-01-15 09:59:46
问题 I'm start working rails development with Docker. Currently, I follow some tutorial to setup development environment. Everything work well. (for build, run). But now, I want to setup Ruby Remote SDK for Rubymine, so I installed SSH on docker container (the ruby container; I INSTALLED SSH BECAUSE IT'S NEEDED FOR SETTING REMOTE SDK). Here is Dockerfile FROM ruby:2.2.0 # Install package RUN apt-get update -qq && apt-get install -y \ build-essential \ libpq-dev \ nodejs \ openssh-server # Setting

Debug rails app inside docker use Intellij/Rubymine

蓝咒 提交于 2020-01-15 09:59:27
问题 I'm start working rails development with Docker. Currently, I follow some tutorial to setup development environment. Everything work well. (for build, run). But now, I want to setup Ruby Remote SDK for Rubymine, so I installed SSH on docker container (the ruby container; I INSTALLED SSH BECAUSE IT'S NEEDED FOR SETTING REMOTE SDK). Here is Dockerfile FROM ruby:2.2.0 # Install package RUN apt-get update -qq && apt-get install -y \ build-essential \ libpq-dev \ nodejs \ openssh-server # Setting

Not all services are registered in Consul with Registrator

岁酱吖の 提交于 2020-01-15 09:33:20
问题 I have Docker and Docker Compose on my machine and I have a docker-compose.yml file. Inside of this file I define two services like so ... nginx: build: context: ./nginx-proxy' image: nginx-proxy container_name: nginx ports: - 8181:80 links: - consul-server - php depends_on: -registrator php: build: context: ./php-apache image: php-apache container_name: php-apache depends_on: - registrator ... It is quite a big docker-compose.yml file, which also contains definitions of consul-server and

Not all services are registered in Consul with Registrator

我的未来我决定 提交于 2020-01-15 09:33:09
问题 I have Docker and Docker Compose on my machine and I have a docker-compose.yml file. Inside of this file I define two services like so ... nginx: build: context: ./nginx-proxy' image: nginx-proxy container_name: nginx ports: - 8181:80 links: - consul-server - php depends_on: -registrator php: build: context: ./php-apache image: php-apache container_name: php-apache depends_on: - registrator ... It is quite a big docker-compose.yml file, which also contains definitions of consul-server and

Properly mount Flask app at location using Nginx reverse proxy

时光怂恿深爱的人放手 提交于 2020-01-15 09:29:50
问题 I have a Flask app, which runs inside a Docker container and should be exposed under a specific URL: myserver.com/mylocation . I want to use another container running Nginx as a reverse proxy to achieve the routing. I am following an awesome tutorial that got me quite far already. My Nginx-config (the relevant part) reads: server { server_name myserver.com; location /mylocation { proxy_pass http://myapp:5000; proxy_set_header Host $host; rewrite ^/mylocation(.*)$ $1 break; } } My docker

Docker Compose: cannot run ssh: No such file or directory

喜夏-厌秋 提交于 2020-01-15 04:05:23
问题 I'm trying to use docker-compose to fetch, build and run multiple services from their git repositories. I made a simple docker-compose.yml to test it: version: '3' services: test-service: build: git@gitlab.com:dan-poltherm/partservicego.git ports: - 8005:443 It seems that docker-compose can't fetch repository I get following error when calling docker-compose up --build : ERROR: error fetching: fatal: cannot run ssh: No such file or directory I have OpenSSH Client installed (Windows 10 port)

How to configure spring boot web app with redis using Docker

╄→尐↘猪︶ㄣ 提交于 2020-01-15 03:45:06
问题 I have a small spring boot web application which saves the data to redis. After running docker-compose.yml containers are started but on localhost:8085 i have "The connection was reset". spring boot aplication.yml server: address: 127.0.0.1 --- spring: profiles: development server: address: 127.0.0.1 --- spring: profiles: production server: address: 127.0.0.1 docker-compose.yml web: build: docker_app ports: - "8085:8080" links: - redis redis: image: redis How do I link spring boot and redis?