docker-compose

Akka.net remoting over Docker containers: client randomly fails to connect to host

一个人想着一个人 提交于 2019-12-11 08:39:14
问题 There is a simple host with a TestActor that only writes a string it receives to the console: using (var actorSystem = ActorSystem.Create("host", HoconLoader.FromFile("config.hocon"))) { var testActor = actorSystem.ActorOf(Props.Create<TestActor>(), "TestActor"); Console.WriteLine($"Waiting for requests..."); while (true) { Task.Delay(1000).Wait(); } } On the other side there is a simple client that selects the remote actor and passes a TestMessage to it, then waits on an ask without a

How to seed a docker container in Windows

风流意气都作罢 提交于 2019-12-11 08:36:05
问题 I intended to install a mongodb docker container from Docker Hub, and then insert some data into it. Obviously, a mongodb seed container is needed. So I did the following: created a Dockerfile of Mongo seed container in mongo_seed/Dockerfile and the code in Dockerfile is the following: FROM mongo:latest WORKDIR /tmp COPY data/shops.json . COPY import.sh . CMD ["/bin/bash", "-c", "source import.sh"] The code of import.sh is the following: #!/bin/bash ls . mongoimport --host mongodb --db data -

Docker-compose internal communication using endpoints

∥☆過路亽.° 提交于 2019-12-11 08:17:22
问题 Working on getting two different services running inside a single docker-compose.yml to communicate w. each other within docker-compose . The two services are regular NodeJS servers ( app1 & app2 ). app1 receives POST requests from an external source, and should then send a request to the other NodeJS server, app2 w. information based on the initial POST request. The challenge that I'm facing is how to make the two NodeJS containers communicate w. each other w/o hardcoding a specific

Issue getting docker to access my database properly with wordpress

为君一笑 提交于 2019-12-11 08:05:48
问题 I'm new to docker all together - but am trying to setup a local test environment to play with some wordpress things. So I went to the docker site and pulled up a default docker .yml file on how to get it going easily. I've made just a couple changes, but mostly this is a straight forward document. version: '3' services: db: image: mysql:5.7 volumes: - db_data:/var/lib/mysql2 restart: always ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: somerootwordpresspw MYSQL_DATABASE: testdatabase

Cygnus-NGSI won't save data in PostgreSQL

南楼画角 提交于 2019-12-11 07:58:35
问题 Im trying to save some data in a postgreSQL database using cygnus-ngsi, but nothing happens. Im running all services in a docker container using docker-compose. docker-compose.yml: ... cygnus: image: fiware/cygnus-ngsi:latest hostname: cygnus container_name: cygnus_fiware volumes: - ./config/cygnus/cygnus.conf:/opt/apache-flume/conf/agent.conf - ./config/cygnus/grouping_rules.conf:/opt/apache-flume/conf/grouping_rules.conf links: - orion - postgres expose: - "5050" ports: - "5050:5050"

Replicate docker-compose volume behavior in kubernetes

随声附和 提交于 2019-12-11 07:48:57
问题 I am migrating a docker-compose file for a tomcat + postgres application to kubernetes. My test environment is Dockers for Windows with Kubernetes enabled. If I use an emptyDir volume for postgres, I am able to test my application successfully, but I am unable to persist postgres data. volumes: - name: "pgdata-vol" emptyDir: {} On MacOS, I am able to persist postgres data using a hostPath volume. volumes: - name: "pgdata-vol" hostPath: path: /tmp/vols/pgdata Unfortunately, if I try the same

delayed_job in rails docker is not working properly

会有一股神秘感。 提交于 2019-12-11 07:35:22
问题 I have shifted my rails application to docker. Everything is working fine except the rails delayed_job. I have use delayed_job to send email. I have started my job through command docker-compose run web rake jobs:work it has started succesfully as shown in the image. Now when I am trying to send email in console it is showing that the email is initiated as shown in the above image. Do I have to include any line in my docker-compose.yml or Dockerfile. My Dockerfile is : FROM ruby:2.3.6 RUN

I want to share code content across several containers using docker-compose volume directive

眉间皱痕 提交于 2019-12-11 07:30:48
问题 I have a PHP application that I need to containerize. I am setting up the following: container for varnish container for nginx container for php-fpm container for cron container for tooling container with PHP code baked into Container 2,3,4,5 all need to have access to the same PHP application codebase that is baked into container 6. I would like to set this up to be able to revert to previous releases for the application by just changing the version tag of the codebase container. My current

How to pass a parameter from docker-compose to service runned in docker image?

独自空忆成欢 提交于 2019-12-11 07:24:53
问题 My docker-compose.yml , among other images, uses official mongo docker image: mongodb: container_name: mongodb image: mongo:3.2 volumes: - mongo_data:/data/db ports: - "57017:27017" restart: always The problem is that I need mongo deamon to run with --httpinterface option. How can I change my docker-compose.yml to pass this parameter to the final CMD ["mongod"] ? Is it possible without touching the mongo image? Forking this image to only add one parameter would be an overkill. 回答1: You can

Docker-compose with Loopback and Mongodb fail to connect mongdb

萝らか妹 提交于 2019-12-11 07:16:15
问题 I have been learning docker lately and I was unable to make a connection between my loopback api and mongodb. The application works fine in local dev environment. With docker-compose my mongodb server runs at localhost:27017 and my react-frontend serves at localhost:3000 and looks fine. Only loopback is unable to connect to mongodb and throws the following errors: loopback_1 | Web server listening at: http://localhost:8080 loopback_1 | Browse your REST API at http://localhost:8080/explorer