docker-compose

Docker: Could not find any MySQL database drivers. (MySQLi or PDO required.)

百般思念 提交于 2019-12-23 04:36:39
问题 I'm trying to customize a default PHP image to develop a wordpress plugin locally This the docker-compose.yml section about wordpress service wordpress: container_name: wordpress build: actual-wordpress #image: php:5.5-apache volumes: - ./actual-wordpress/www/:/var/www/html/ - ./actual-wordpress/wp-config-local.php:/var/www/html/wp-config.php - ./actual-wordpress/srtool/:/var/www/html/srtool/ depends_on: - db ports: - 8000:80 restart: always And this is the 'actual-wordpress' dockerfile being

How to unset an environment variable in Eclipse run configuration?

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:42:16
问题 I have an external run configuration for docker-compose, and need to disable TLS verification because my VPN messes with my connection and I connect through a forwarded port because of that. The only way I have found to do that for docker-compose is to unset the environment variable DOCKER_TLS_VERIFY (setting it to 0 does not work). Note that setting it to an empty String in the environment variables view did not work (see screenshot). How can I unset the variable? 回答1: On the bottom of the

accessing host's virtual machine from docker container

試著忘記壹切 提交于 2019-12-23 02:28:28
问题 I'm working on local machine (Mac) with legacy virtual machine within it called sqlvm (mean I can access this vm from local host via http://sqlvm:). Now I set up few docker containers (using docker-compose) in the same local host (my Mac) which should connect to the vm. The pymysql raise an exception: OperationalError: (OperationalError) (2003, "Can't connect to MySQL server on 'sqlvm' ([Errno -2] Name or service not known)") None None How can I expose the outside 'sqlvm' to the internal

Docker MySQL - can't connect from Spring Boot app to MySQL database

倾然丶 夕夏残阳落幕 提交于 2019-12-23 01:32:32
问题 What I'm trying to do is, connect from my spring-boot app to mysql database in Docker. Each in their own container. But I must be having something wrong because I can't do it. To keep it simple : application-properties : # URL for the mysql db spring.datasource.url=jdbc:mysql://workaround-mysql:3308/workaround?serverTimezone=UTC&max_allowed_packet=15728640 # User name in mysql spring.datasource.username=springuser # Password for mysql spring.datasource.password=admin #Port at which

Communication between linked docker containers

会有一股神秘感。 提交于 2019-12-22 18:34:48
问题 I have two docker containers in the following setup on a host machine: Container 1 - UDP Port 5043 is mapped to host port 5043 (0.0.0.0:5043:5043) Container 2 - Needs to send data to Container 1 on port 5043 as UDP. Scenario 1 I start Container 1 and obtain it's IP address. I use this IP address and configure Container 2 with it and start it. Container 2 is able to send UDP data to Container 1 by calling udp://Container_1_IP:5043 EVERYTHING WORKS!! Scenario 2 I start Container 1 by mapping

Micro Services With Docker Compose: Same Container, Multiple Projects

爱⌒轻易说出口 提交于 2019-12-22 18:14:44
问题 Along with a few others, I am having issues using a micro services architecture of applications and employing docker-compose the way I want to. Summary: I have X micro service projects (lets call these project A , project B and project C . Each micro service depends on the same containers (lets call these dependency D and dependency E . The Problem: Ideally, project A , B and C would ALL have both dependencies ( D & E ) in their docker-compose.yml files; however, this becomes an issue as

Docker Compose build context from git repository with Dockerfile inside folder

北城余情 提交于 2019-12-22 17:24:06
问题 I would like to build a new image in my docker compose project using a git repository as I need to change some ARG vars. My concern is that the Dockerfile is inside a folder of the git repository. How can be specified a folder as build context using a git repository? Repository: https://github.com/wodby/drupal-php/blob/master/7/Dockerfile version: "2" services: php: build: context: https://github.com/wodby/drupal-php.git dockerfile: 7/Dockerfile args: - BASE_IMAGE_TAG=7.1 - WODBY_USER_ID=117

Set up of Hyperledger fabric on 2 different PCs

心已入冬 提交于 2019-12-22 13:02:58
问题 I need to run Hyperledger-Fabric instances on 4 different machines PC-1 should contain CA and peers of ORG-1 in containers, Pc-2 should contain CA and peers of ORG-2, PC-3 should contain orderer(solo) and PC-4 should Node api Is my approach missing something ? if not how can I achieve this? 回答1: I would recommend that you look at the Ansible driver in Hyperledger Cello project to manage deployment across multiple hosts/vms. In short, you need to establish network visibility across the set of

Files created inside docker are write protected on host

纵饮孤独 提交于 2019-12-22 12:39:15
问题 I am using docker container for rails and ember.I am mounting the source from my local to the container. All the changes I make here on local are reflected in the container. Now I want to use generators to create files. The files are created, but they are write protected on my machine. When I try to do docker-compose run frontend bash , I get a root@061e4159d4ef:/frontend# superuser prompt access inside of the container. I can create files when I am in this mode. These files are write

Docker Ignore is not woking well with docker compose and my file structure

房东的猫 提交于 2019-12-22 11:02:08
问题 I'am setting up a new dockerfile and docker-compose.yml. I'll below show first my file structure with rails and I want to use a new .dockerignore to ignore node_modules , .git . my docker version is: Docker version 18.09.0, build 4d60db4 my docker-compose.yml than I use is v3 Root Directory - Gemfile - app - bin - cable - db - config - lib - node_modules - public - vendor - docker - app - Dockerfile - .git - .gitignore - .dockerignore - docker-compose.yml docker/app/Dockerfile FROM ruby:2.3.1