docker-compose

docker-compose: mariadb - Connection refused

别等时光非礼了梦想. 提交于 2020-01-25 09:21:06
问题 Step 1) mysql5 & phpmyadmin Image the following mysql-phpmyadmin configuration: version: '3.6' services: db: image: mysql:5.7.24 # image: mysql:8.0.18 # image: mariadb:10.4.8 # command: --default-authentication-plugin=mysql_native_password restart: always volumes: - ./mysql5:/var/lib/mysql # - ./mysql8:/var/lib/mysql # - ./mariadb:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=test - MYSQL_DATABASE=test - MYSQL_USER=test - MYSQL_PASSWORD=test phpmyadmin: image: phpmyadmin/phpmyadmin:4.8.5

docker COPY all fails when not in C drive

谁说胖子不能爱 提交于 2020-01-25 08:53:06
问题 NOTE: I'm on windows 10, using docker-machine / virtual box I have a project which builds and runs just fine when on my C:\ drive. If I copy all files to my second hard drive F:\ the COPY . /path command in my Dockerfile appears to succeed, however when I inspect that directory in the container it's empty. My docker file; FROM php:7.3-apache-stretch RUN docker-php-ext-install pdo_mysql \ && a2enmod rewrite negotiation COPY docker/php/php.ini /usr/local/etc/php/php.ini COPY docker/apache/vhost

Install Node.Js in a Sonarqube instance on the docker-compose

时光怂恿深爱的人放手 提交于 2020-01-25 07:05:12
问题 so I'm trying to launch SonarQube on the docker through docker-compose . This is my .yml file: version: "3" services: sonarqube: image: sonarqube ports: - "9000:9000" - "5432:5432" links: - db:db environment: - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar - SONARQUBE_JDBC_USERNAME=postgres - SONARQUBE_JDBC_PASSWORD=sonar volumes: - ..../Work/tools/_SonarQube_home/conf:/opt/sonarqube/conf # - sonarqube_data:/opt/sonarqube_new/data - ...../Work/tools/_SonarQube_home/data:/opt/sonarqube

NodeJS is not detecting change in Docker Bind Mount until Swarm is restarted

这一生的挚爱 提交于 2020-01-25 02:49:48
问题 I'm building a NodeJS application on Docker in Swarm mode (single node). I'm using bind mount volume for NodeJS source code. Everything runs perfectly and I can see the output in localhost from NodeJS and Express, but when I change something in NodeJS code (which is in a bind mount volume), nothing changes. I have to restart my service to observe the changes. Earlier when I was working with Docker Compose only, it never happened, but now when I have switched to Swarm, I'm experiencing

redash docker安装不踩坑指北

旧时模样 提交于 2020-01-25 02:20:01
git clone https://github.com/getredash/setup cd setup/ sudo docker-compose run --rm server create_db sudo docker-compose up -d 如果自行走其他途径安装,遇坑不少,喜欢踩坑的可尝试一下。 来源: CSDN 作者: eventer123 链接: https://blog.csdn.net/eventer123/article/details/104017142

Resource access denied when pushing container to Azure Container Registry

纵然是瞬间 提交于 2020-01-24 23:51:25
问题 When pushing containers into a private Azure Container Registry using Docker Compose the Azure DevOps pipeline returns the following error: Pushing [container] ([registry]/[app]:latest)... The push refers to repository [docker.io/[registry]/[container]] denied: requested access to the resource is denied The azure-pipeline.yml file is taken from the Docker Compose example shown in the Microsoft Microservices eShopOnContainer example, here: variables: azureContainerRegistry: myregistry

Website available in standalone container, not in swarm

主宰稳场 提交于 2020-01-24 21:06:05
问题 I have Docker CE running on windows server 2016 with 2 images. when I run these in containers, everything is fine. docker run --detach --name Website1 --publish 94:94 webimage1 docker run --detach --name Website2 --publish 95:95 webimage2 I can access through browser on other PCs: http://host:94/page1.aspx http://host:95/page1.aspx Now I want to run them in swarm. I've gone through docker tutorial and 've set up docker-compose file, with services, port mapping. The setup has Website 1 of 1

Docker file permissions mismatch between host dir and container using bind-mount

馋奶兔 提交于 2020-01-24 20:44:06
问题 The problem My docker-compose stack is comprised of 'postgresql', 'redis' and 'Python api server' along with a few others like opentracing etc., but the problem area is restricted to the before mentioned. The entrypoint in my compose file is a shell script that creates a few files and folders dynamically by reading the environment variables amongst the other things it is supposed to do. Now, the creation of these files work like a charm but the file and folder permissions of these dynamically

Docker: Write to disk of linked container

送分小仙女□ 提交于 2020-01-24 20:19:12
问题 I have a Docker container that runs a simple web application. That container is linked to two other containers by Docker Compose with the following docker-compose.yml file: version: '2' services: mongo_service: image: mongo command: mongod ports: - '27017:27017' tomcat_service: image: 'bitnami/tomcat:latest' ports: - '8080:8080' web: # gain access to linked containers links: - mongo_service - tomcat_service # explicitly declare service dependencies depends_on: - mongo_service - tomcat_service

Cannot connect to mongoDB with Nodejs using Docker-compose

℡╲_俬逩灬. 提交于 2020-01-24 20:18:26
问题 I'm stucking with docker-compose to create 2 image which one is nodejs app and other is mongodb. My OS information Hardware: Raspberry Pi 3+ OS: Raspbian buster This is my folder tree: __docker // contain mongodb data |__docker_mongo // mongo image |__docker_node // nodejs iamge |__docker-compose.yml Node app docker is fine without connecting to mongo. Database node config: const url = 'mongodb://172.20.0.3:56086/nodejs'; const url = 'mongodb://mongo:27017/nodejs'; I've tried 2 case above but