docker-compose

how to define a general mount point in docker compose

别说谁变了你拦得住时间么 提交于 2019-12-11 06:47:18
问题 I would like to define a general mount volume - along with all the options I would like to have it associated - that can be reused across multiple services. In fact, I'm developing a project which uses the same source for several microservices. That way, the volume will be simpler to manage and modify. To start off, I used the old way which took advantage of volumes_from : shared: image: phusion/baseimage volumes: - ./code:/var/www/html nginx: build: docker/nginx ports: - "8080:80" links: -

docker-compose environment not the same as Docker -e

亡梦爱人 提交于 2019-12-11 06:46:50
问题 I am using docker-compose file and want to add some ENV variables to it, which are not related to redis itself. redis-master: environment: - REDIS_REPLICATION_MODE=master - ALLOW_EMPTY_PASSWORD=yes # Domains - VIRTUAL_HOST=redis-master.xxx.com - VIRTUAL_PORT=6379 ports: - '6379:6379' expose: - '6379' image: bitnami/redis:latest But the problem is that this two ENV were not added to Docker: VIRTUAL_HOST and VIRTUAL_PORT If I am doing like docker run -d -p 6379:6379 --name redis-master -e

Can't deploy artifact to KIE-server via Drools workbench because of “ConversationId not valid - missing releaseId”

落爺英雄遲暮 提交于 2019-12-11 06:39:12
问题 I'm using the, kie-server-showcase and drools-workbench-showcase, via docker-run, I can see the kie-server in the drools UI and deploy a build to it. However, when I use docker-compose, I get a runtime exception when trying to deploy the demo morgauge project, see the logs here: http://pastebin.com/qKQ8hgak, but I've included the interesting parts: kie-server | 15:24:41,268 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.0.Final "Tweek" started in 15690ms - Started 406 of

docker asp.net core container starting after a mysql container

强颜欢笑 提交于 2019-12-11 06:19:25
问题 i have a docker container with asp.net core and a container with mysql. Now i need to wait with asp.net core container for the mysql container is up and ready (both container are starting through docker-compose.yml). Something like https://github.com/jwilder/dockerize , wait-for-it.sh or wait-for seems not to work for asp.net core container. Have someone a clue how to solve the problem? UPDATE this is my dockerfile: FROM microsoft/aspnetcore-build:2.0 AS build-env WORKDIR /app # Copy csproj

docker - how can we export/import (or save/load) only the new changes?

瘦欲@ 提交于 2019-12-11 05:59:51
问题 I'm new to docker, Could any one help for below query Server has a docker image like 1GB Image:ver1 [this image stored has .tar file in server] In ubuntu PC donwloaded the tar image form server and loads/import the image[Image:ver1] using Docker A new Image:ver2 is available on the Serever, size is still 1GB but difference with ver1 is only 10MB. Q1: If it’s possible to “import/load” the new image[Image:ver2] from server, how can we export/import (or save/load) only the new changes[i.e 10MB]?

Docker build specific local git branch

吃可爱长大的小学妹 提交于 2019-12-11 05:49:21
问题 I am new to docker and would like to containerize a specific git branch of my app.If I run docker build and give the location of my dockerfile, an image will be build but from the local master branch by default.I want to be able to build another branch say "develop".I have done some research and all the answers I found suggest building from a specific remote branch and not a specific local branch. 回答1: You’d do this the same way you’d build or run any other program, from source, from a non

Add -f parameter when running Docker Toolbox

穿精又带淫゛_ 提交于 2019-12-11 05:25:02
问题 I would like to run a docker container using Docker Compose. The docker-compose up command works fine but I want to specify the location of the docker-compose.yml file. This is the command that is working. In this case the location of the docker-compose.yml file is C:\Users\USERNAME\docker-compose.yml "C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\Docker Toolbox\start.sh" docker-compose up Now when I add the -f parameter, the Docker Toolbox just crashes. Say I want to put

Gogs + Drone getsockopt: connection refused

孤者浪人 提交于 2019-12-11 05:08:25
问题 In the Gogs/webhooks interface when i click the test delivery button i got this error; Delivery: Post http://localhost:8000/hook?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoidG9tL2Ryb255IiwidHlwZSI6Imhvb2sifQ.UZdOVW2IdiDcLQzKcnlmlAxkuA8GTZBH634G0K7rggI: dial tcp [::1]:8000: getsockopt: connection refused This is my docker-compose.yml file version: '2' services: gogs: image: gogs/gogs ports: - 3000:3000 - 22:22 links: - mysql mysql: image: mysql expose: - 3306 environment: -

Docker exposing ports madness

别说谁变了你拦得住时间么 提交于 2019-12-11 05:06:44
问题 I've got several docker containers up and running using docker-compose. Nginx connected to PHP through internal port-forwarding at 9000/tcp. PHP connected to mysql through internal forwarding. Nginx is reachable at public NIC! Another container running postfix is based on the same baseimage and configured/launched exactly the same as the Nginx-container but its ports are not accessible from the internet. Both nginx and postfix are exposing the same way, so why is postfix not reachable?? nginx

Running Django migrations on dockerized project

为君一笑 提交于 2019-12-11 05:05:24
问题 I have a Django project running in multiple Docker containers with help of docker-compose . The source code is attached from directory on my local machine. Here's the compose configuration file: version: '3' services: db: image: 'postgres' ports: - '5432:5432' core: build: context: . dockerfile: Dockerfile command: python3 manage.py runserver 0.0.0.0:8000 ports: - '8001:8000' volumes: - .:/code depends_on: - db Although the application starts as it should, I can't run migrations, because