docker-compose

Creating spark cluster with drone.yml not working

六月ゝ 毕业季﹏ 提交于 2019-12-22 01:31:44
问题 I have docker-compose.yml with below image and configuration version: '3' services: spark-master: image: bde2020/spark-master:2.4.4-hadoop2.7 container_name: spark-master ports: - "8080:8080" - "7077:7077" environment: - INIT_DAEMON_STEP=setup_spark spark-worker-1: image: bde2020/spark-worker:2.4.4-hadoop2.7 container_name: spark-worker-1 depends_on: - spark-master ports: - "8081:8081" environment: - "SPARK_MASTER=spark://spark-master:7077" here the docker-compose up log ---> https://jpst.it

Docker-compose - build with maven that re-uses the maven repository

笑着哭i 提交于 2019-12-22 00:56:01
问题 When building my Spring-boot image using Maven I now do this inside the Dockerfile. Maven will download all dependencies and then compile my files. This takes quite some time. How can I specify that the build process via docker-compose (Dockerfile) re-uses my "Windows10 Home" Maven repository? So, the number of (new) downloads is minimal. My dev context: I use the Docker quickstart terminal, so using a docker-machine. The is is a part of my docker-compose.yml file: version: '3' services:

Add docker container to network under two different names

北城余情 提交于 2019-12-21 21:26:13
问题 I am experimenting with the new docker networking feature. I migrated my old setup using container links to the new bridge network; so far, I have my dedicated bridge network up and running among multiple containers on the same host. Now I am looking for a means to replicate multiple link aliases for the same container. Say, I have a container named myBox that joins the docker network. I want to have the same container also reachable as myServer . Using links, I would simply set up two links

Docker-Compose container ip address with container name

烂漫一生 提交于 2019-12-21 20:58:44
问题 My docker-compose have a two service, and docker-compose.yml define enviroment variable ip address with container name, version: '2' services: api: build: ./api/ command: python3 manage.py runserver volumes: - ./api:/code ports: - "8000:80" networks: - dock_net container_name: con_api web: build: ./web/ command: python3 manage.py runserver volumes: - ./web:/code ports: - "8001:80" networks: - dock_net container_name: con_web environment: Ip:con_ip networks: dock_net: driver: bridge But

Make docker-compose ignore folder within volume

你。 提交于 2019-12-21 20:57:12
问题 I'm using docker-compose for a Rails setup. To sync the files, I've mounted the directory like (some of the code is omitted): app: build: . command: rails server -p 3000 -b '0.0.0.0' volumes: - .:/app However, when running the app, I don't want the folder, tmp, to be synced. Adding the folder to dockerignore only solves the problem when building the docker image. How can I ignore the tmp folder from being synced between the host and guest when running docker compose? 回答1: You can add a second

docker-compos高速安装:

喜你入骨 提交于 2019-12-21 19:55:48
今天在安装compose的时候,一开始使用的是pip安装,但是一路报错,后来使用url安装,使用国内的daoclloud安装,堪比高速: curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose 感谢他们的贡献! 来源: CSDN 作者: 大炮V587 链接: https://blog.csdn.net/u011630259/article/details/103646687

docker with pycharm 5

拥有回忆 提交于 2019-12-21 17:12:47
问题 I try to build a docker-based development box for our django app. It's running smoothly. None of my teammembers will care about that until there is a nice IDE integration, therefore I play the new and shiny Docker Support in pycharm 5. I followed the linked documentation and pycharm does recognise my web container and it's python interpreter. Here's my docker-compose.yml: web: build: . ports: - "8000:8000" volumes: - .:/srv/app links: - database - search - cache entrypoint: /home/deployer/web

Redis cluster with docker swarm using docker compose

时光怂恿深爱的人放手 提交于 2019-12-21 13:09:25
问题 I'm just learning docker and all of its goodness like swarm and compose. My intention is to create a Redis cluster in docker swarm. Here is my compose file - version: '3' services: redis: image: redis:alpine command: ["redis-server","--appendonly yes","--cluster-enabled yes","--cluster-node-timeout 60000","--cluster-require-full-coverage no"] deploy: replicas: 5 restart_policy: condition: on-failure ports: - 6379:6379 - 16379:16379 networks: host: external: true If I add the network: - host

Docker: Using COPY when the Dockerfile is located in a subdirectory

二次信任 提交于 2019-12-21 12:45:11
问题 I'm building an app using multiple dockerfiles (one for each service). My app's directory structure is as follows: app ├── dockerfiles │ ├── webserver │ │ └── Dockerfile │ └── database │ └── Dockerfile ├── public └── <frontend> ├── db └── <data> [...] ├── LICENSE ├── README.md └── docker-compose.yml In my webserver's Dockerfile , I want to copy in my existing code using the COPY command: # Dockerfile COPY ./public /var/www/html And I want to deploy the app using my docker-compose.yml file: #

mongodb connection refused docker-compose

与世无争的帅哥 提交于 2019-12-21 12:22:37
问题 The dockerfile consists as:- FROM ruby:2.2.3-slim MAINTAINER Milan Rawal <milan@gmail.com> RUN apt-get update && apt-get install -qq -y build-essential nodejs libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core curl htop --fix-missing --no-install-recommends ENV INSTALL_PATH /air_scout RUN mkdir -p $INSTALL_PATH WORKDIR $INSTALL_PATH COPY Gemfile Gemfile RUN bundle install COPY . . RUN bundle exec rake RAILS_ENV=production SECRET_TOKEN