Newest 'docker-compose' Questions

Q&A for professional and enthusiast programmers

Cannot Access Docker Phpmyadmin via Port

I set up a typical webenvironment on the Google Cloud Platform via Docker. Nginx, Php, MySQL is up and running. Next thing I want is Phpmyadmin, but here I stumble upon a connectivity issue. I ...

Intellij docker integration plugin and invalid volume specification on docker-machine for windows 10

I'm trying to use intellij's docker integration plugin with the following tutorial on Get started with Docker Compose running on a docker-machine installed on windows 10. My project is located here: C:...

Access to localhost with nginx and docker-compose

I would like access to my local app on localhost url with docker-compose and nginx. I can access to my projet with 127.0.0.1 and my vhost app.local, but not with localhost : error 404. My nginx conf (...

Rancher: always deploying to new stack

I'm setting up a job on Rancher. When I start a command to deploy image to rancher, everything works successfully but I meet only one problem: new image always is deployed to new stack. I have set up ...

Docker Image installing php modules

I created a Dockerfile like below FROM ubuntu:14.04 RUN apt-get update -y && apt-get install -y software-properties-common language-pack-en-base RUN LC_ALL=en_US.UTF-8 add-apt-repository ...

How do I create a database in the Postgres Docker container? [duplicate]

I want to create a database after starting the Postgres Docker image. The problem is if I put my database creation command in my docker-compose file or a child dockerfile it overrides the base image'...

Can't get phpmyadmin and mysql working in docker / docker-compose [on hold]

I am using docker-compose for mysql,wordpress and trying to add phpmyadmin container but can't get it working. MySQL and Wordpress are working fine, but I can't connect to mysql from phpmyadmin. It is ...

Docker Compose env_file in Multicontainer Elastic Beanstalk

I have the following docker compose file: version: '2' services: app: build: . command: > bash -cex " export LC_ALL=C.UTF-8 export LANG=C.UTF-8 /virtualenv/...

What is wrong in my docker-compose.yml file?

I need a little bit of help to find why my docker-compose.yml doesn't work. The story is that I have a docker-compose.yml who works (and who create Grafana, Prometheus, nodeexporter, cAdvisor and ...

`docker-compose up` times out with UnixHTTPConnectionPool

In our Jenkins agents we are running about several (around 20) tests whose setup involves running docker-compose up for a "big" number of services/containers (around 14). From time to time, I'll get ...

Apache Metron Docker Compose Start Up Error

I tried to start up Apache Metron 0.3.1 docker containers by the following command: $ docker-compose up -d Creating network "metron_default" with the default driver Creating metron_elasticsearch_1 ...

docker-compose how to run container with bind 1-to-1 ports on ip aliasing interface

i have many IP's on my interface: inet 10.100.131.115/24 brd 10.100.131.255 scope global br0 valid_lft forever preferred_lft forever inet 10.100.131.120/24 brd 10.100.131.255 scope global secondary ...

How to mount a single file in a volume

I am pretty new to docker, and some concepts of volumes are quite confusing to me. What I am trying to do is to dockerize a php application. In the dockerfile I download the archive, extract it etc. ...

Share a data volume between two docker containers

I use Docker version 1.13.1,build 092cba3 on Windows 10. I have a custom Jenkins container that builds code from Github in a volume. The volume is /var/jenkins_home/workspace/myjob . I also have an ...

docker stucks when executing time.sleep(1) in a python loop

With the use of docker-compose and python:2.7, it runs correctly when executing only while 1 loop and time.sleep(1) separately. But it stucks when executing them together. Here is the docker version ...

Docker multiple environments

I'm trying to wrap my head around Docker, but I'm having a hard time figuring it out. I tried to implement it in my small project (MERN stack), and I was thinking how do you distinct between ...

Does docker build run commands twice?

In a Dockerfile I have a FROM clause that loads the base image, say something like FROM mysql:5.7 Inside the Dockerfile for mysql it runs commands like apt-get update, but what I don't understand ...

docker compose file is invalid ,additional properties not allowed tty

I really need help on this error I don't understand why I get this error. Thanks docker -v Docker version 1.13.1, build 092cba3 docker-compose -v docker-compose version 1.11.1, build 7c5d5e4 this ...

Docker hangs on the RUN command OSX

I have been learning docker using the docker docs, and first encountered a problem in the quick start guide to Django. The program would build normally up until the the second to last command. Here is ...

nginx doesn't forward to django app in docker-compose in ubuntu but it all works in docker-machine in Mac

I have a django backend where I use docker-compose to deploy. This django application uses a nginx proxy in the front. When I deploy it in a docker-machine and I go to the docker-machine ip I am ...

Run `docker-php-ext-install` FROM container other than php

I have a problem with Docker (docker-compose). I want to install some PHP extensions using docker-compose.yml, but I am unable to do this, because my .yml has FROM ubuntu and not FROM php. Is there ...

Cannot get new connection from pool

I use the elasticsearch Ruby gem and docker compose for my containers. After startup from my Ruby app I get this error: Elasticsearch::Transport::Transport::Error: Cannot get new connection from ...

How to run an application as 100 services with docker? [closed]

I'd like to scale my service to 100 or more instances. I tried using docker-compose to scale the service, but encountered this error. > ERROR: for docker_web_2 Cannot start service web: driver ...

Docker compose - secrets Additional property secrets is not allowed

docker-compose --version docker-compose version 1.11.1, build 7c5d5e4 I have secret 'my_secret_data' added to my swarm cluster: The start of my compose file looks like: version: "3.1" secrets: ...

How to replace volumes_from in docker-composer v3

I want to know the equivalent of the configuration below to suit version 3 of docker-composer.yml! volumes_from is no longer valid so am I supposed to skip the data volume and replace it with top ...

How to specify Memory & CPU limit in docker compose version 3

I am unable to specify CPU & memory for services specified in version 3 . With version 2 it works fine with "mem_limit" & "cpu_shares" parameters under the services . But it fails while using ...

Multi host cassandra Docker-compose file issue

I am fairly new to playing around with Docker so hopefully this is all my fault, but I am trying to get a multihost Apache Cassandra ring setup using Docker Compose. I have the following docker-...

How to enable_ipv6 with docker compose version 3

How do I enable_ipv6 with docker compose version 3? I get the following error enable_ipv6 Additional property enable_ipv6 is not allowed with networks: default: driver: overlay ...

Docker Compose Continuous Deployment setup

I am looking for a way to deploy docker-compose images and / or builds to a remote sever, specifically but not limited to a DigitalOcean VPS. docker-compose is currently working on the CircleCI ...

Docker Swarm Stack constraint and affinity does not work

I am trying to limit my stack to one node. I tried using both the affinity and constraint, but without any success. My containers are started on random nodes. I use docker-compose yml as my stack ...

Devise session sharing between subdomains

I'm trying to share session between subdomain, but I couldn't. I followed this Devise config, but it didn't work. This is how my /etc/hosts looks like: 127.0.0.1 localhost 127.0.0.1 ...

How to execute program in linked docker containers?

Setup Currently I have two docker containers. First container is webapp host -this is where user uploads files. Second container is pipeline host -used to process uploaded files. Solution Currently ...

manage more than one Elasticsearch container with docker-compose

i need use more than elasticsearch node in the same machine.but whene i add the second elasticsearch service in docker-compose.yml. all elasticsearch services crach. my sample yml file : version: "2" ...

Docker compose and Spring boot: scale command starts container without environment variables

I have one Spring Boot application which must be scaled. I have following configuration with parent docker-compose.yml and some profile docker-compose.some-profile.yml. Parent compose file: api-...

How to make docker-compose scale start dependencies?

There is a setup with 1...N application containers which are connected to different backend services. The docker-compose.yml looks like this: services: backend1: ... backend2: ... ...

Docker-Compose WordPress MySql Can't Connect

I am getting a 502 Gateway error while trying to connect to my WordPress site. Looking at the logs I have this error. MySQL Connection Error: (1045) Access denied for user 'root'@'172.23.0.3' (...

docker mount nfs with local_lock=all

I have docker-compose.yml file volumes: nfs: driver: local driver_opts: type: nfs o: addr=192.168.100.1,rw device: ":/mnt/storage" my container have mounted ...

Apache Metron Docker Compose Start Up Error (Repost)

I tried to start up Apache Metron 0.3.1 docker containers by the following command: $ docker-compose up -d Creating network "metron_default" with the default driver Creating metron_elasticsearch_1 ...

Using docker-compose in a GitLab CI pipeline

I'm trying to implement a GitLab continuous integration (CI) pipeline with the following .gitlab-ci.yml file: image: docker:latest # When using dind, it's wise to use the overlayfs driver for # ...

Docker compose v2 containers not finding each other (though v1 does)

Trying to learn Docker, I am having trouble getting two containers to see each other. When using docker-compose version 2 formatted files, I receive errors trying to reach the database from the front ...

Docker compose detached mode not working

Q. How to run docker-compose in detach mode I am trying to run docker-compose in detach mode but it will exits after just it's run, but I am able run same image in detach mode using 'docker run' ...

Django on Docker - relation “django_session” does not exist at character 109

I'm trying to run Django project based on coockiecutter using Docker but I get these errors: full output: https://dpaste.de/eKF5 sudo docker-compose up crm_postgres_1 is up-to-date Starting ...

Docker compose and hostname

I have a compose file with 2 services (containers) named "web" and "db". { "version": "2", "services": { "web": { "image": "nodejs:latest", "ports": ["80"] ...

Docker Compose with Rails hanging up on command

I'm following the Docker Rails tutorial via https://docs.docker.com/compose/rails/#build-the-project (using Windows 10 Home) EDIT: Just a note, I am using docker-toolbox because Docker requires ...

What is docker image location on Windows 10

I am having Windows 10 Home operating system. I have installed Docker toolbox. I have created docker image of my .net core application by using following command. $ docker build -t helloWorld:...

docker .env file reuse declared variables

When I run docker-compose build I have a .env file to be used for building environment variables on my docker-machine like this: COMPOSE_PROJECT_NAME=radar ENV=production DB_NAME=postgres DB_USER=...

Docker-compose linking service into dockerfile

I am pretty new to docker, and I am trying to make a container with multiple apps. Let say that my docker-compose file is like this : version: '2' services: myapp: build: ./dockerfiles/...

docker-compose volumes_from equivalent with version 3

I'm trying to create an Nginx/PHP FPM setup with docker compose and am having issues with the version 3 volumes syntax/changes. My Dockerfile: FROM php:7-fpm VOLUME /var/www/html My docker-compose....

Running .net core docker image, says application started, but on browsing gives “This site can’t be reached” error

I am having Windows 10 Home operating system. I have installed Docker toolbox. My docker file is as follows: FROM microsoft/dotnet:1.1-sdk-projectjson COPY . /app WORKDIR /app RUN ["dotnet", "...

Is it possible to run docker services in dockerfile based on some conditions?

Consider the following docker-compose.yml file. There are three services named seleniumhub,firefoxnode,chromenode. Is it possible to run only one or two services with a condition? If yes, how should I ...
Translating... 0%