docker-compose

No response from Grafana via AJAX

若如初见. 提交于 2019-12-12 07:24:43
问题 I have Grafana set up in a Docker container ( grafana/grafana image from Docker repo) with port 3000 forwarded to my localhost. My docker-compose.yml below: version: '2.1' services: grafana: image: grafana/grafana ports: - 3000:3000 Originally I also have link to Graphite and some volumes and environment configuration ( GF_SECURITY_ADMIN_PASSWORD only) but I suppose it does not matter. I can get a response from Grafana via simple curl call: $ curl http://localhost:3000 <a href="/login">Found<

Private docker registry with self signed TLS certificates not accepting valid basic authorization credentials

有些话、适合烂在心里 提交于 2019-12-12 06:50:21
问题 I have deployed a private docker registry (registry version 2.7) using Ansible (code given below). Followed official link https://docs.docker.com/registry/deploying/. registry: restart: always image: registry:2 ports: - 5000:5000 environment: REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt REGISTRY_HTTP_TLS_KEY: /certs/domain.key REGISTRY_AUTH: htpasswd REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm volumes: - /path/data:/var/lib/registry - /path

Docker-compose up : Connection refused

旧城冷巷雨未停 提交于 2019-12-12 06:47:47
问题 I'm using Docker-compose in my project when i'm trying to inside a project to connect to a host in my VBox "localhost:22000" it causes an Exception connection refused version: '2' services: mongodb: image: mongo ports: - "27017:27017" command: mongod --smallfiles rabbitmq: image: rabbitmq:3.5.3-management ports: - "5672:5672" - "15672:15672" broker: image: java:openjdk-8u91-jdk depends_on: - mongodb - rabbitmq working_dir: /app volumes: - ./blockchain-rabbitmq/target/:/app command: java -jar

dynamically adding nginx container ip into phpfpm /etc/hosts file

孤人 提交于 2019-12-12 04:58:13
问题 Looking to automatically add the nginx container ip address inside my phpfpm container /etc/hosts file. Inside my yml file, I have a service called phpfpm, and I know you can use extra_hosts attribute to assign values into the /etc/hosts file, however I don't know how to dynamically call place the nginx container IP. nginx: build: ./nginx ports: - "80:80" - "443:443" volumes: - ../public/:/var/www/html/public/ container_name: nginx networks: - backend phpfpm: build: ./php-fpm volumes: - ..

docker stack deploy from compose file - all services one node?

∥☆過路亽.° 提交于 2019-12-12 04:57:30
问题 I have a docker-compose file with 10 services (containers). I have it configured one instance of each server. When I execute the stack deploy, all 10 services go to one node (manager). I trust that adding a second instance of a service will distribute it, but I want my 10 unique services distributed. 回答1: If you are using a private registry its important to share the login and credentials with the worker nodes by using docker stack deploy --with-registry-auth 回答2: Don't have the reputation to

Why does my node container ignore the environment variable I set in docker-compose.yml?

风流意气都作罢 提交于 2019-12-12 04:47:26
问题 In my docker-compose.yml, I set environment NODE_ENV node2: image: ... environment: - "NODE_ENV=production" My Dockerfile, FROM node:latest ... //all the ususal stuff CMD ["npm", "start"] My npm, "scripts": { "start": "NODE_ENV=development node --inspect ./bin/www" }, But when I run docker-compose up, I found the nodejs code still runs in development, not in production. Why is that? My second question is what is the proper way to achieve what I want to do here, when running my nodejs without

multiple docker compose container - single ip

微笑、不失礼 提交于 2019-12-12 04:27:33
问题 I have this application. How can I assign a single ip-address to the web-service and use the database within? version: "2" services: web: image: kartoffeltoby/typo3:latest hostname: localhost container_name: web ports: - 80:80 link: - db:database volumes: - ./www/:/var/www/ environment: - DOCROOT=/var/www/web - PAGESPEED=Off db: image: mysql:5.6 hostname: database volumes: - ./DB/:/var/lib/mysql/ - ./db/:/var/tmp/db environment: - MYSQL_ROOT_PASSWORD=passwort 回答1: The solution is: network

Unable to load balance using Docker, Consul and nginx

*爱你&永不变心* 提交于 2019-12-12 04:23:31
问题 What I want to achive is load balancing using this stack: Docker, Docker Compose, Registrator, Consul, Consul Template, NGINX and, finally, a tiny service that prints out "Hello world" in browser. So, at this moment I have a docker-compose.yml file. It looks like so: version: '2' services: accent: build: context: ./accent image: accent container_name: accent restart: always ports: - 80 consul: image: gliderlabs/consul-server:latest container_name: consul hostname: ${MYHOST} restart: always

CentOS7使用Docker-compose安装zookeeper集群

♀尐吖头ヾ 提交于 2019-12-12 04:13:28
1. 安装docker CentOS7安装docker 2.安装docker-compose 下载: curl -L https://github.com/docker/compose/releases/download/1.17.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose 授运行权限: chmod +x /usr/local/bin/docker-compose 启动: docker-compose up 3.使用docker下载zookeeper镜像: docker pull zookeeper:3.4.14 安装完成之后,可以看到zk镜像已经存在: 4. 在 /usr/local/docker/zookeeper (路径文件夹没有可以自己创建)下,创建 docker-compose.yml 添加内容如下: version: '2' services: zoo1: image: zookeeper:3.4.14 restart: always container_name: zoo1 ports: - "2181:2181" environment: ZOO_MY_ID: 1 ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2

Running Cloudant as docker container with docker compose

浪子不回头ぞ 提交于 2019-12-12 03:59:25
问题 I am trying to use this image https://hub.docker.com/r/ibmcom/cloudant-developer/ with docker compose, when I use the original instructions it works, however when I translate it to docker compose format it doesn't work properly, I see the dashboard page but it is empty and seems broken. The original run command: docker run \ --privileged \ --detach \ --volume cloudant:/srv \ --name cloudant-developer \ --publish 8080:80 \ --hostname cloudant.dev \ ibmcom/cloudant-developer The compose file I