docker-compose

Connect two instances of docker-compose

一曲冷凌霜 提交于 2020-04-08 10:07:09
问题 I have a dockerized application with a few services running using docker-compose. I'd like to connect this application with ElasticSearch/Logstash/Kibana (ELK) using another docker-compose application, docker-elk. Both of them are running in the same docker machine in development. In production, that will probably not be the case. How can I configure my application's docker-compose.yml to link to the ELK stack? 回答1: Update Jun 2016 The answer below is outdated starting with docker 1.10. See

Connect two instances of docker-compose

非 Y 不嫁゛ 提交于 2020-04-08 10:05:50
问题 I have a dockerized application with a few services running using docker-compose. I'd like to connect this application with ElasticSearch/Logstash/Kibana (ELK) using another docker-compose application, docker-elk. Both of them are running in the same docker machine in development. In production, that will probably not be the case. How can I configure my application's docker-compose.yml to link to the ELK stack? 回答1: Update Jun 2016 The answer below is outdated starting with docker 1.10. See

NGINX and multiple docker-compose

≡放荡痞女 提交于 2020-04-08 09:36:07
问题 If I want to setup NGINX with my docker containers, one option is to setup the NGINX instance in my docker-compose.yml , and link the NGINX container to all application containers. The drawback of this approach, however, is that the docker-compose.yml becomes server-level, since only one NGINX container can expose port 80/443 to the internet. What I am interested in, is to be able to define several docker-compose.yml on the same server, but still easily expose the public-facing containers in

docker-ce : Depends: libseccomp2 (>= 2.3.0) but 2.2.3-3ubuntu3 is to be installed

左心房为你撑大大i 提交于 2020-04-08 00:04:49
问题 im installing docker on my ubuntu machine and im following this tutorial https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#extra-steps-for-aufs when i run sudo apt-get install -y docker-ce it does not install docker on my machine and giving following error $ sudo apt-get install -y docker-ce Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible

docker-ce : Depends: libseccomp2 (>= 2.3.0) but 2.2.3-3ubuntu3 is to be installed

£可爱£侵袭症+ 提交于 2020-04-08 00:03:19
问题 im installing docker on my ubuntu machine and im following this tutorial https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#extra-steps-for-aufs when i run sudo apt-get install -y docker-ce it does not install docker on my machine and giving following error $ sudo apt-get install -y docker-ce Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible

How to get docker mapped ports from node.js application?

一笑奈何 提交于 2020-04-07 19:04:21
问题 I would like to get mapped port from inside node.js application. ex. docker-compose : my-app: build: context: ./my-app ports: - "80" volumes: - /var/run/docker.sock:/tmp/docker.sock networks: - private docker ps -a : 1234 my-app "/usr/local/bin/dock…" About a minute ago Up About a minute 0.0.0.0:33962->80/tcp And I would like to get 33962 port from node.js app. Any ideas? 回答1: So the first thing is that currently, docker doesn't give the metadata information inside the container in any direct

UOS软件安装(一)

为君一笑 提交于 2020-04-07 17:00:22
1.chrome安装 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo apt-get update sudo apt-get install google-chrome-stable /usr/bin/google-chrome-stable 2.go 安装 (1.)下载go安装包 go安装包 解压到/usr/local/go tar -zxvf xxx.tar.gz -C /usr/local/ (2.)配置环境变量 vim /etc/profile export GOROOT=/usr/local/go #设置为go安装的路径,有些安装包会自动设置默认的goroot export GOPATH=$HOME/gocode #默认安装包的路径 export PATH=$PATH:$GOROOT/bin:$GOPATH/bin source /etc/profile 3.git 安装 (1.)安装 apt-get update -y apt-get upgrade -y apt install git git --version (2.)配置 git config --global user.name "linuxidc" git config -

使用docker-compose安装FastDfs文件服务器

删除回忆录丶 提交于 2020-04-06 21:40:12
docker-compose.yml version: '2' services: fastdfs-tracker: hostname: fastdfs-tracker container_name: fastdfs-tracker image: season/fastdfs:1.2 network_mode: "host" command: tracker volumes: - ./tracker_data:/fastdfs/tracker/data fastdfs-storage: hostname: fastdfs-storage container_name: fastdfs-storage image: season/fastdfs:1.2 network_mode: "host" volumes: - ./storage_data:/fastdfs/storage/data - ./store_path:/fastdfs/store_path environment: - TRACKER_SERVER=xxx.xxx.xxx.xxx:22122 command: storage depends_on: - fastdfs-tracker fastdfs-nginx: hostname: fastdfs-nginx container_name: fastdfs

Crawlab尝试

老子叫甜甜 提交于 2020-04-06 03:42:26
官方: https://docs.crawlab.cn/ https://github.com/crawlab-team/crawlab Crawlab配置 Windows 安装 docker: https://www.docker.com/products/docker-desktop 安装python环境: 我选 Pycharm+Anaconda 安装docker-compose: pip install docker-compose 创建项目文件:docker-compose.yml 启动: docker-compose up -d 测试服务: http://localhost:8080/ docker-compose.yml version: '3.3' services: master: image: tikazyq/crawlab:latest container_name: master environment: # CRAWLAB_API_ADDRESS: "https://<your_api_ip>:<your_api_port>" # backend API address 后端 API 地址. 适用于 https 或者源码部署 CRAWLAB_SERVER_MASTER: "Y" # whether to be master node 是否为主节点,主节点为

harbor安装使用

房东的猫 提交于 2020-04-05 16:50:16
docker-compose版本有要求 curl -L https://github.com/docker/compose/releases/download/1.8.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose rz harbor文件 tar zxf harbor-offline-installer-v1.5.0.tgz cd harbor vim harbor.cfg [root@test2 harbor]# ll total 854960 drwxr-xr-x 3 root root 23 Apr 5 01:32 common -rw-r--r-- 1 root root 1185 May 2 2018 docker-compose.clair.yml -rw-r--r-- 1 root root 1725 May 2 2018 docker-compose.notary.yml -rw-r--r-- 1 root root 3596 May 2 2018 docker-compose.yml drwxr-xr-x 3 root root 156 May 2 2018 ha -rw-r--r-- 1