docker-compose

Spark job (Java) cannot write data to Elasticsearch cluster

我只是一个虾纸丫 提交于 2019-12-13 18:03:42
问题 I am using Docker 17.04.0-ce and Compose 1.12.0 in Windows in order to deploy Elasticsearch cluster (version 5.4.0) over Docker. So far I have done the following: 1) I have created a single Elasticsearch node via compose with the following configuration elasticsearch1: build: elasticsearch/ container_name: es_1 cap_add: - IPC_LOCK environment: - cluster.name=cp-es-cluster - node.name=cloud1 - node.master=true - http.cors.enabled=true - http.cors.allow-origin="*" - bootstrap.memory_lock=true -

Asp.net core with linux docker container

霸气de小男生 提交于 2019-12-13 17:40:37
问题 For a asp.net core project template in VS 2017, there are docker-compose.ci.build.yml: version: '3' services: ci-build: image: microsoft/aspnetcore-build:1.0-2.0 volumes: - .:/src working_dir: /src command: /bin/bash -c "dotnet restore ./WebAppCoreDockerTest.sln && dotnet publish ./WebAppCoreDockerTest.sln -c Release -o ./obj/Docker/publish" docker-compose.yml: version: '3' services: webappcoredockertest: image: webappcoredockertest ports: - 8080:80 build: context: ./WebAppCoreDockerTest

'./docker-compose.yml', service must be a mapping, not a NoneType

前提是你 提交于 2019-12-13 12:53:38
问题 When I ran: COMPOSE_PROJECT_NAME=zk_test docker-compose up , I got error saying "ERROR: In file './docker-compose.yml', service must be a mapping, not a NoneType.". This is my yml file: version: '2' services: zoo1: image: zookeeper restart: always container_name: zoo1 ports: - "2181:2181" environment: ZOO_MY_ID: 1 ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 zoo2: image: zookeeper restart: always container_name: zoo2 ports: - "2182:2181" environment:

docker-compose 基础

筅森魡賤 提交于 2019-12-13 12:43:21
安装 #安装 curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose #yum yum install docker-compose 说明 #编写YAML文件 #https://docs.docker.com/compose/compose-file/ YAML文件格式及编写注意事项 是一种标记语言很直观的数据序列化格式 可读写高 类似XML 语法更简单 数据结构通过缩进来表示 连续的项目通过减号来表示 键值对用冒号分割 数组用中括号括起来 hash用花括号括起来 YAML文件格式注意事项 不支持制表符tab键缩进 需要使用空格缩进 通常开头缩进2个空格 字符后缩进1个空格 如冒号 都好 横杠 用#号注释 如果包含特殊字符用单引号引起来 布尔值(true false yes no on off)必须用引号括起来 这样分析器会将他们解释为字符串 字段 描述 build dockerfile context 指定Dockerfile文件名 构建镜像上下文路径 image 指定镜像

mongod --bind_ip using docker-compose version 2

和自甴很熟 提交于 2019-12-13 11:43:13
问题 I'm trying to connect two mongodb containers running on docker using docker-compose . One container seed some data to the other using mongoimport . However, I'm getting the following error when run mongoimport Failed: error connecting to db server: no reachable servers I can actually reach the mongodb container from mongo-seed since I'd appended a ping -c 3 mongodb to the CMD and the container can resolve successfully that hostname. Below the files I'm using: docker-compose.yml version: '2'

Multiple docker services to listen on same host and port

点点圈 提交于 2019-12-13 08:58:51
问题 i am new to nginx and I am not sure is this normal behavior... Here is the lib I am using: https://github.com/jwilder/nginx-proxy I will explain here what I trying to accomplish... I have 2 additional services service1 and service2 those services are simple node.js images with API endpoints service1 have routes: - service1/api/first - service1/api/second ` ` service2 have routes: - service2/api/third - service2/api/fourth ` So is possible to be able to access this services from same host,

Starting Tryton server with docker-compose file

醉酒当歌 提交于 2019-12-13 08:30:34
问题 I am trying to link an external postgres to tryton/tryton from docker hub. docker-compose.yaml version: '3.7' services: tryton-postgres: image: postgres ports: - 5432:5432 environment: - POSTGRES_PASSWORD=password - POSTGRES_DB=tryton restart: always gnuserver: image: tryton/tryton:4.6 links: - tryton-postgres:postgres ports: - 8000:8000 depends_on: - tryton-postgres entrypoint: /entrypoint.sh trytond when i ssh into the container and run trytond-admin --all -d tryton it seems to be looking

Docker unable to resolve .net standard class libraries, on deploying .net core app to Docker

前提是你 提交于 2019-12-13 07:03:51
问题 I am deploying .net core app to Docker. My docker file is as follows, which is added in my .net core application: FROM microsoft/dotnet:1.1-sdk-projectjson COPY . /app WORKDIR /app RUN ["dotnet", "restore"] RUN ["dotnet", "build"] EXPOSE 5000/tcp ENV ASPNETCORE_URLS http://*:5000 ENTRYPOINT ["dotnet", "run"] Its not able to resolve .net standard class libraries, which are added to my .net core application. My project structure is as follows: Core folder -Logging.Interfaces .net std project

Docker - Make docker containers use my public ip

混江龙づ霸主 提交于 2019-12-13 05:06:48
问题 Problem I have a react app running inside a container. I need to request an API(not mine) and it only accepts public IP addresses. Can the container use the public address of my machine? Docker-compose version: '3' services: client: container_name: client build: context: ./client dockerfile: Dockerfile volumes: - './client:/usr/src/app' - '/usr/src/app/node_modules' ports: - '3000:3000' environment: - NODE_ENV=development - NODE_PATH=src 回答1: As to your question: Can the container use the

php's execute_sql did not insert data into the database

让人想犯罪 __ 提交于 2019-12-13 04:45:01
问题 I submitted these two files: sample_annotation.txt sample_synteny.txt It appears that sample_synteny.txt has not be loaded into the mgsv database with help of function syn($filename) because SELECT * FROM 304420020185300000016_synteny`` contains only the column names ( org1, org1_start, org1_end, org2, org2_start, org2_end, length, SYNcolor ) without any data. During processing this file I got the following output: insert into 304530020182800000020_synteny (org1, org1_start, org1_end, org2,