Newest 'docker-compose' Questions

Q&A for professional and enthusiast programmers

AWS Cloudwatch logs with Docker Container - NoCredentialProviders: no valid providers in chain

My docker-compose file: version: '2' services: scraper: build: ./Scraper/ logging: driver: "awslogs" options: awslogs-region: "eu-west-1" awslogs-group: "...

Using Symfony in Docker Environment for Production

I am looking to implement a symfony application on Docker using Docker-Compose. I will have at least the following containers : Nginx Rabbitmq server PHP-FPM MySQL Solr Currently we have a ...

Docker-compose ps error

I am new to docker-compose and getting the following error when I type in docker-compose ps. Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 7, in <module> ...

Using docker-compose in Dockerfile

To create a docker image for a tileserver i want to include the generation of the tilemaps via https://github.com/openmaptiles/openmaptiles/blob/master/QUICKSTART.md into the build process. For that ...

Docker and /etc/host/ changing

How can I get access to Docker container's host by domain name without edit /etc/hosts on host machine? My docker-compose.yml version: '2' services: test: image: 'php:5.6-apache' ...

docker-compose volume not appearing in container

I'm trying to build a stack with one docker-compose that should contain another containers inside. This is to run a development environment with all my projects inside. So the problem is the volume ...

finding the docker container ip for adding wait

I have a docker compose file with 2 containers to bring up. I want to wait for DB container to be up before i start my web server container. i have a script that can wait until a given host:port is ...

Logs to AWS Cloudwatch from Docker Containers

I have a few docker containers running with docker-compose on an AWS EC2 instance. I am looking to get the logs sent to AWS CloudWatch. I was also having issues getting the logs from docker containers ...

Docker HAProxy SSL termination with Letsencrypt

I currently have a docker setup working with haproxy as a load balancer directing traffic to containers running my web app. I'm trying to add SSL termination to HAProxy and have run into some trouble. ...
+500

Why is docker looking in /simple for python packages?

I've been trying to get django to run via uwsgi in a docker container. I had django running in docker, with its built in web server, but now that I've modified the requirements.txt to include uwsgi, ...

How to pass argument to Docker file ( specifically to FROM instruction)

I am trying to make ubuntu version as argument and value should get from docker-compose file. compose-file: version: '2' services: rahul: container_name: rahul_container build : context: . ...

How to run sql script for postgres in docker

I am following this post to run sql script to create default table. Here is my docker compose file version: "3" services:   web:     build: .     volumes:       - ./:/usr/src/app/       - /usr/src/...

Nginx default page on docker

// docker-compose.yml web: image: nginx:latest ports: - "8080:80" volumes: - ./code:/code # - ./site/site.conf:/etc/nginx/conf.d/site....

two docker-compose .yml in the same network with COMPOSE_PROJECT_NAME

I am trying to have my own network name for my docker-compose files (server.yml and test.yml), as test.yml gets only started from time to time, but needs access to some services in the server.yml. I ...

Can I update the hostname of a Docker Node?

Currently all my nodes have the name ubuntu-yakkety. docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS d7rdq4n4dmrkhyz4ov7ldr31e ubuntu-yakkety ...

Using custom shell script as docker entrypoint

I’m trying to use docker-compose to bring up a container. As an ENTRYPOINT, that container has a simple bash script that I wrote. Now, when I try to bring up the container in any of the below ways: ...

Wordpress Docker won't increase upload limit

I am trying to increate the upload limit of my Dockerized Wordpress instance to 150M. I have created an uploads.ini file and attached it by volume to the instance. Yet I still can't get the ...

Is docker healthcheck supported in pycharm 2017.1

I have a problem running pycharm with docker-compose. I have Django inside of an container and postgres inside another container. The strange thing is: I just get the following error when using ...

Storm and cloudera linking with docker-compose

I am using storm topology which writes indexed data to hbase in cloudera. Both storm and cloudera resides in a docker container. The topology works and writes the data to hbase without any problem ...

Using SMB shares as docker volumes

I'm new to docker and docker-compose. I'm trying to run a service using docker-compose on my Raspberry PI. The data this service uses is stored on my NAS and is accessible via samba. I'm currently ...

Docker link between varnish and wordpress not working

This is my docker-compose file: version: '2' services: db: image: mysql:5.7 volumes: - db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: ...

docker-compose: specify which interface will connect to each network (when having multiple networks)

Inside the docker-compose.yaml I define 4 different networks: networks: vpp-nw: vpp-client: vpp-server: vpp-db: which use the following network addresses respectively: 172.20.0.x 172.21.0.x ...

how to get api gateway address in order to call it from angular container in docker compose

i have a docker compose file in which there are several containers among which there are an api gateway and another one with an angularjs application (the website of this stack). The api gateway is ...

docker stack deploy from private repo

Does anyone know how to specify username / password for pulling images from a private registry during a docker stack deploy? I want to be able to do this in one command: docker stack deploy --compose-...

Intentionally removing volumes in override docker-compose files

For production deployment, I don't want shared volumes. So, I have an override file but this does not remove the volumes. Is there a way to remove shared volumes in an override file? I'd like to ...

MariaDB Error executing 'postInstallation'

I would like use bitnami-docker-redmine for start redmine project on my server Ubuntu. But, MariaDB return an error after run docker-compose up : (master) $> docker-compose up Creating ...

Docker Compose v3 Ports issue

I've started using Docker 17.03.0 to make use of swarm/deploy. I am wondering if I have stumbled across a bug, or am configuring something incorrectly here. With a standard docker-compose up on our ...

How to connect to the database in Docker in my case?

I am trying to connect to my postgres through docker containers. I have read a lots of posts but still can't seem to resolve it. I ran the following command. docker run --name some-postgres -e ...

How to create a DB for MongoDB container on start up?

I am working with Docker and I have a stack with PHP, MySQL, Apache and Redis. I need to add MongoDB now so I was checking the Dockerfile for the latest version and also the docker-entrypoint.sh file ...

How to run docker-compose as root user Docker Cloud

When I run as docker compose as ec2-user [ec2-user@ip-15-0-52-106 $ docker-compose --version docker-compose version 1.11.2, build dfed245 but as root user [root@ip-15-0-52-106 ~]# docker-compose --...

docker container never comes up

have a docker compose file with 2 containers to bring up. my current docker compose file looks like: version: '3' services: db: image: <image repo url> ports: - "5500:5500" ...

Docker-compose recommended way to use data containers

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 ...

How to run docker-compose in Azure Container Service and deploy to agent rather than master?

I follow this article (https://blogs.msdn.microsoft.com/jcorioland/2016/04/25/create-a-docker-swarm-cluster-using-azure-container-service/#comment-1015) to setup a swarm docker host cluster. There are ...

Relative path not working with named volumes in the docker-compose.yml

I need to make a named volume use a relative path to the folder where the docker-compose command is executed. Here is the volume definition in the docker-compose.yml volumes: esdata1: driver: ...

How to read environment variable in Nodejs?

I am trying to read a environment file through docker compose. My problem is my code only read the first line of the variable value. My test.env NODE_ENV=development ## Not the actual key ## ...

version control of docker-compose.yml

My application has 4 docker containers that talk to each other and is specified with a docker-compose.yml file, so I can just do docker-compose up -d from the location where that file is stored and it ...

Mount a windows host directory in compose file version 3

I trying to upgrade docker-compose.yml from version 1 to version 3. Main question about volumes_from: To share a volume between services, define it using the top-level volumes option and reference ...

After running docker-compose, port on Amazon EC2 are not getting mapped to the public IP address

I created a swarm on AWS by running docker-machine create --driver amazonec2 --amazonec2-access-key $AWS_ACCESS_KEY_ID --amazonec2-secret-key $AWS_SECRET_ACCESS_KEY --amazonec2-vpc-id $AWS_VPC_ID --...

Docker volume with restart always option enabled

I have problem to configure my docker-compose file that docker can restart containers on reboot(my OS is Ubuntu 16.04). The problem isn't when I pass restart: always into it, but when my container ...

Is there a “do-something-after-stop hook” in IntelliJ IDEA?

Working: Before launch I'm starting some docker containers when I run my Play 2 App. To do so, I added an External tool (which just runs docker-compose up -d) to the Before launch section in my Run/...

How to docker exec -ti CONTAINER_NAME /bin/bash on deployed docker stack?

I have a deployed docker stack on AWS with swarm: docker stack deploy --with-registry-auth -c docker-stack.yml pipeline I want to get an interactive bash session into one of the containers defined ...

Docker reload does not reflect changes in CSS files

I've configured docker to reload automatically when i make changes to my project files. It works fine when i make changes in HTML or .py files but does not reflect any changes to CSS files. this ...

How to mount host codes to container in docker?

I have a very simple code base like the following Dockerfile docker-compose.yml package.json server.js My docker file FROM node:alpine RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY package....

Docker - SpringConfig - Connection refused to ConfigServer

I'm trying to deploy a ConfigServrService and a Client with a remote repository using DockerCompose. The docker-compose.yml is like: version: '2' services: rabbitmq: image: rabbitmq ...

Docker (compose) and socket io - how to link containers

I am currently working on a project where I remake an existing project to be used in docker containers. I have 3 different containers: a nodejs server that opens a socket.io connection on port 3001 ...

env file-named volume in docker-compose

I'm new to Docker. I am writing a docker-compose file which creates 2 containers, foo and bar, sharing a volume data: services: foo: container_name: foo build: ./foo ...

Cannot connect from one container to another

I have running 3 docker containers. app, mongodb and elasticsearch. when I connect to mongodb from app it looks like this: mongoose.connect('mongodb://<name_of_the_container>/<database_name&...

Pass environment variable from linux to docker container

I am using docker-compose like this: version: "2" services: 3dominator: build: . image: 3dominator:0.1 container_name: 3dominator environment: NODE_ENV: development ...

What is the tool to deploy dockerized apps?

As a rails developer I use Capistrano and Mina to deploy my apps. Is there something like those tools, but for deploying dockerized apps with ability to rollback in case of any error?

How to get ip and port in one docker container form other one with environment variables?

I use Docker-Compose. Some time ago i used this code. Nginx used ip and port from environment variables like this "API_PORT_5432_TCP_ADDR" "API_PORT_5432_TCP_PORT". Now i can not to connect from one ...
Translating... 0%