docker-compose

mysql give error when running the docker composer - node js

删除回忆录丶 提交于 2019-12-13 04:33:07
问题 I am trying to deploy my node js application with docker but when I am running the docker compose it giving an error at the end. There is an issue in MySQL.I am running the command in terminal: docker-compose up --build docker-compose.yml version: '3' services: db: build: context: . dockerfile: ./docker/Dockerfile-mysql container_name: mydb command: --explicit_defaults_for_timestamp=1 environment: - MYSQL_ALLOW_EMPTY_PASSWORD=yes - MYSQL_DATABASE=dbautokab - MYSQL_USER=root - MYSQL_PASSWORD=

Build a docker volume based of an image

你说的曾经没有我的故事 提交于 2019-12-13 04:25:59
问题 Im trying to build a docker volume directly from a JS image through a bash command. The difficulty here mostly lays on the fact that I want the contents of the volume to be the eval of a string. The string itself is JS code that reads from a Kafka stream. I know how to execute the bash command directly from a js file, However im a bit lost when it comes to what the command should look like: TO clarify: - I want to specify the eval(string) as the code to run inside the container - I want to

Unable to run two docker containers with docker-compose. I get the error: “python: can't open file 'app.py': [Errno 2] No such file or directory”

我的未来我决定 提交于 2019-12-13 04:08:56
问题 I'm trying to run two web services in 2 separate containers, but unable to run them both at the same time. Separately they both work. My project structure is this: / - docker-compose.yml - Dockerfile - pom.xml - src/ - ... other spring boot web service folders and files - Pirmas/ -Dockerfile -app.py -docker-compose.yml (it is not used when running both services) One web service is in the main directory the other is in the directory "Pirmas". I try to run docker composer from the base folder

Docker container communication - “Could not translate host name \”mydbalias\“ to address: Temporary failure in name resolution”

不打扰是莪最后的温柔 提交于 2019-12-13 04:06:57
问题 I have a PostgreSQL container and a Swift server container. I need to pass the DB IP to the Server to start it. So I created an alias for DB in my custom bridge network. Have a look at my docker-compose.yml version: '3' services: db: build: database image: postgres networks: mybridgenet: aliases: - mydbalias web: image: mywebserver:latest ports: - "8000:8000" depends_on: - db networks: - mybridgenet environment: WAIT_HOSTS: db:5432 networks: mybridgenet: driver: bridge Dockerfile to build

Docker host rmi throws invalid authority but able to ping

五迷三道 提交于 2019-12-13 04:04:57
问题 I've Alfresco, Running on one docker container A and exposes rmi on say 33333 . Another normal java service runs on container B. Both are connected to same custom bridge network. When container B tries to connects to alfresco via rmi using url rmi://alfresco:33333 it throws java.net.MalformedURLException: invalid authority: rmi://alfresco:33333/Abcdefghi . But the same is able to ping alfresco. I think the url format given in rmi is wrong. if so. What should it be substituted with? I already

How to create a docker-compose.yml file with both public and private images?

送分小仙女□ 提交于 2019-12-13 03:55:37
问题 I'm trying to create a docker-compose.yml file for a specific team of developers at work. I've pushed our private images up to a private registry (Azure Container Registry) and that's ok/working :) Next I'm trying to test out how to get the dev's of this particular team to run the docker-compose file which will pull down all the images and then start them all. I've figured out that the developers will need to do this: -> docker login -u <admin username of my registry> <domain of the registry>

Directory created inside docker container not reflecting on host machine

倖福魔咒の 提交于 2019-12-13 03:55:28
问题 I am beginner in docker. I am trying to create docker container and there is one folder with name 'data'. When container starts then it is expected to create folder inside data with name "logs" and "hive". And these folder should reflect on host machine directory as I am specifying in docker-compose.yml file. When I went to docker container there file system is like /usr/src/app # ls ./data hive logs /usr/src/app # Following is my docker-compose configuration for volume `volumes: - ./data/:

mongoimport in docker-compose gives me 'Cannot start service' error

烂漫一生 提交于 2019-12-13 03:47:18
问题 I have an app that is composed of React, Flask, and MongoDB as a database. What I tried to do was importing ( mongoimport ) some json files to the MongoDB database when I docker-compose build . In my root directory, I created a directory called mongo-seed and I put all json files that I tried to import to the database along with the import.sh that looks like: mongoimport --host <my_host_name> --db <my_db_name> --collection profiles --type json --file /mongo-seed/profiles.json --jsonArray

Nodemon doesn't reload in docker container when files change

♀尐吖头ヾ 提交于 2019-12-13 03:42:23
问题 I read many threads sabout this but no one solves anything. Some say you have to add --legacy-watch (or -L ) to the nodemon command. Others shows several different configurations and apparently nodody really knows what you gotta do to achieve server restarting when a file change at the volume inside a docker container. Here my configuration so far: Dockerfile: FROM node:latest # Create app directory RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # install nodemon globally RUN npm install

Dockerfile installing multiple msi

拈花ヽ惹草 提交于 2019-12-13 03:38:08
问题 I would like install the following programs to the Windows 10 as a server and hence my maven string boot project afterwards. Git (windows 64 bit) Version: 2.16.2 Java SE Development Kit (windows 64 bit) Version: 8u201 Open JDK (windows 64 bit) Version: 11.0.2 Apache Maven Version: 3.6.1 Eclipse 2019-03 (windows 64 bit) Version: 4.11.0 Lombok Version: 1.18.6 When it comes to the configuration, I find out the samples that only installing one software to configure instead of multiple. As a dev