docker-compose

Docker performance on ubuntu host 2x+ worse than OSX host

末鹿安然 提交于 2020-01-03 05:32:24
问题 Ok, let's start over after a bunch of investigation. Here is what we know: Ubuntu host 15.04 on i7 3820 (quad 3.6) and Samsung 850 pro SSD 512gb SATA 6 $ docker info Containers: 2 Images: 101 Storage Driver: overlay Backing Filesystem: extfs Execution Driver: native-0.2 Logging Driver: json-file Kernel Version: 3.19.0-28-generic Operating System: Ubuntu 15.04 CPUs: 8 Total Memory: 15.61 GiB Name: camacho ID: ZOYN:QGDO:UGMJ:TDDM:WEEM:ZEHJ:4OKB:V5WR:RGCL:NOKG:F5W5:SDEL WARNING: No swap limit

Jhipster application development with Docker and gulp

若如初见. 提交于 2020-01-03 04:34:12
问题 I am working on a Jhipster application, and am running this application using docker. This is working, however its very cumbersome. I would like to be able to make UI changes (text, css, html etc) and benefit from gulp and browsersync, that is for example, make a change to an html file, save the file, and have the browser automatically refresh and show the change. However, the only way I can get changes visible in the browser is to: 1 stop the docker container 2 stop gulp 3 rebuild docker

Docker container internal vs external dns resolution issue using Traefik

别来无恙 提交于 2020-01-03 03:51:08
问题 Docker 18.06.1-ce, traefik 1.7.3, dnsmasq, Mac 10.14 I have docker-compose setup with Traefik and need to access several services from inside the docker network/containers and externally. On a linux box (with Let'sEncrypt and http redirected to https), everything works using the same FQDN for both docker container internal and external access, and I don't have to use the service names. When I run curl http://belapi.dev.biodati.test from inside the pipeline container using docker-compose exec

After docker-compose build the docker-compose up run old not updated containers

元气小坏坏 提交于 2020-01-03 03:04:13
问题 I use docker-compose and find following problem: When I change my code and want to rebuild dockers I use docker-compose stop docker-compose build And then I want to run system by: docker-compose up But no new version of code/containers are run but old ones. What to do? 回答1: You could use, docker-compose up --build or docker-compose up --build --force-recreate 回答2: I have a helper function to nuke everything so that our Continuous blah, cycle can be tested, erm... continuously. Basically it

Microservice can not reach to Config Server on Docker Compose

女生的网名这么多〃 提交于 2020-01-03 02:49:09
问题 I have a Eureka Server, Config Server and Spring-Boot Service. I have created a docker compose file like this: version: '3' services: user-service: container_name: user-service-container image: user-service:latest build: context: ./user-service dockerfile: DockerFile hostname: user-service ports: - "8082:8082" depends_on: - postgresdb - eureka-service - config-server environment: management.context-path : /userservice hostName : user-service EUREKA_HOST: eureka-service EUREKA_PORT: 8761

Running multiple websites - docker compose

你离开我真会死。 提交于 2020-01-03 01:59:06
问题 I have a docker-compose.yml file that looks something like this version: "3.0" volumes: dbdata: .: services: api: build: context: ./api args: - APP_NAME=${APP_NAME} dockerfile: dockerfile depends_on: - database - webserver volumes: - ./api:/usr/local/share/${APP_NAME} database: image: mysql:5.7 volumes: - ./dbdata:/var/lib/mysql restart: always ports: - ${COMPOSE_DB_PORT}:3306 webserver: build: context: . dockerfile: webserver.dockerfile working_dir: "/usr/local/share/${APP_NAME}" volumes: -

How to set up Apache2 and PHP-FPM via unix socket?

≯℡__Kan透↙ 提交于 2020-01-03 01:12:30
问题 I try to set up Apache2 and PHP-FPM via unix socket but result is (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.sock (*) failed docker-compose.yml version: "2" services: php: build: "php:7.2-rc-alpine" container_name: "php" volumes: - "./code:/usr/local/apache2/htdocs" - "./php7.2-fpm.sock:/run/php/php7.2-fpm.sock" apache2: build: "httpd:2.4-alpine" container_name: "apache2" volumes: - "./code:/usr/local/apache2/htdocs" - "./php7.2-fpm

Initialize Cloudera Hive Docker Container With Data

痴心易碎 提交于 2020-01-02 20:18:58
问题 I am running the Cloudera suite in a Docker Container using the image described here: https://hub.docker.com/r/cloudera/quickstart/ I have the following configuration: Dockerfile FROM cloudera/quickstart:latest Docker Compose file version: '3.1' services: db-hive: container_name: mobydq-test-db-hive image: mobydq-test-db-hive restart: always build: context: . dockerfile: ./db-hive/Dockerfile expose: - 10000 networks: - default hostname: quickstart.cloudera privileged: true tty: true command:

Docker-compose recommended way to use data containers

不问归期 提交于 2020-01-02 19:28:31
问题 In my application I have an nginx container that I want to use to serve static webapp files. These webapp files exist in a separate container called "webapp". What's the recommended way of mounting the webapp container into the nginx container? My current approach looks like this: version: '2' services: nginx: volumes_from: - webapp webapp: image: someimageurl And in the Dockerfile for webapp, I expose a volume at the same path that the nginx container is serving. This works great, but the

Which Docker template values are available in docker stack deploy (compose)?

烂漫一生 提交于 2020-01-02 17:33:28
问题 Where can I find out which template values are available in my Docker UCP Swarm cluster? With template values I mean things like this https://docs.docker.com/engine/reference/commandline/service_create/#create-services-using-templates. I get the feeling that the tree I'm traversing looks a bit like docker inspect output, but a smaller set of it. Which keys? and which expressions can I use? Besides that, I often get errors like for {{.Engine.Labels}} <.Engine.Labels>: can't evaluate field