Questions tagged [docker-compose]

Compose is a tool for defining and running multi-container Docker applications.

Docker Compose is a tool for defining and running multi-container Docker applications.

581 questions
2
votes
0 answers

How do I access docker container from external network using domain name

I have the following docker-composer.yml apache: domainname: dev hostname: server image: arm32v7/httpd:2.4 depends_on: - php - mysql networks: frontend: aliases: - apache -…
Kendall
  • 247
  • 2
  • 4
  • 13
2
votes
0 answers

docker-compose fails to spin up a gerrit container due to permission errors

I'm trying to spin up a gerrit workspace on ubuntu following the details provided in the following link. https://gerrit.googlesource.com/docker-gerrit However, this keeps failing only in when trying to initialise gerrit. If I run with sudo, I get…
2
votes
1 answer

Docker - PHP 7.2 FPM Alpine - Imagick

I'm using Docker image php:7.2-fpm-alpine as base image with following command to install Imagick: RUN apk add --update --no-cache autoconf g++ imagemagick-dev libtool make pcre-dev \ && pecl install imagick \ && docker-php-ext-enable…
CappY
  • 513
  • 1
  • 6
  • 11
2
votes
0 answers

Adding a prefix to hostnames with docker compose?

I'm using docker compose to create a bunch of containers, and the internal hostname is the container ID; when each container registers its hostname in ... whatever (but consul in this instance) it's hard to tell the hosts apart. In particular, when…
Roger Lipscombe
  • 2,177
  • 6
  • 24
  • 37
2
votes
0 answers

Managing multiple websites with Docker-compose

On SO there was a good answer https://stackoverflow.com/questions/47849096/running-multiple-websites-docker-compose, but it works only when you have structure like └───project │ docker-compose.yml │ ├───reverseproxy │ …
2
votes
1 answer

symbolic link get not created inside docker container

Unfortunately, I am not able to create this symbolic link (&& ln -s /db /var/www/html/blast/db/) inside the docker container. What did I miss? FROM ubuntu:16.04 # File Author / Maintainer MAINTAINER Rafael Hernandez…
user3523406
  • 123
  • 1
  • 3
  • 7
2
votes
1 answer

NGINX: Primary script unknown - when calling a dynamic URL with controller prefix

We facing a problem and we can't fix it. We are currently able to run our application as expected - SEO URL runs like a charm and are rewriting to index.php. The problem is, we have an additional URL Pattern like:…
lin
  • 123
  • 5
2
votes
0 answers

Docker for Windows Windows: Keep linux container running after logout

I've installed Docker for Windows on Windows Server 2016 using Hyper-V as Hypervisor for linux containers. The docker service starts automatically when I login to my account. I start my docker configuration using docker-compose: docker-compose up…
MiH
  • 91
  • 7
2
votes
0 answers

Disallow containers to access host's network

In a simple docker-compose structure like this version: "2" services: app: image: myapp db: image: mydb a bridge network is automatically created, which allows: app and db to see each other app and db to see the host's network app and…
cornuz
  • 437
  • 1
  • 7
  • 17
2
votes
1 answer

It takes 30 seconds to reach the Docker exposed port

I want to configure two containers via docker-compose in a way, so one is OpenVPN client, and another is Squid HTTP proxy, exposing 3128 port to access that tunnel from outside. Now, the problem is that for some reason requests to Squid take exactly…
toriningen
  • 231
  • 2
  • 5
2
votes
1 answer

Portainer with docker-compose and volumes fails

The Portainer docs are saying: The -v /opt/portainer:/data option will persist Portainer data in /opt/portainer on the host where Portainer is running. You can specify another location on your filesystem. I just created the following…
Dennis
  • 128
  • 1
  • 7
2
votes
0 answers

Docker Swarm Mode network and load balancing doesn't work for my second service

My setup Two nodes (2GB RAM, 2 vCPU) running docker engine (v17.06.1-ce) -- one swarm and one worker. Internal network bandwidth: 10Gbps. All files and databases are located outside this docker cluster (AWS S3 and different instances for…
Gasim
  • 977
  • 4
  • 14
  • 23
2
votes
1 answer

Using nginx with reverse proxy in docker container not working

I want everything starting with /api to be directed to http://localhost:3007 This is my nginx.conf user nginx; worker_processes 1; daemon off; events { worker_connections 1024; } http { include mime.types; default_type …
Joe
  • 129
  • 2
  • 8
2
votes
0 answers

Access environment variables from another container

How can I access MONGODB url from another container.. My containers are.. Database (Mongo image) Api (Private container with node api) UI (Private container with nginx) In API app I need to use API_MONGO_URL environment variables to reference…
ridermansb
  • 215
  • 3
  • 9
2
votes
1 answer

Avoiding endless tail for Dockerfile CMD

When creating a generic container is there a better way than running an endless ping or tail to keep the container from exiting? FROM ubuntu RUN apt-get update && \ apt-get install -y \ python-pip VOLUME /flask EXPOSE 8080:8080 CMD…
brgalloway
  • 31
  • 1
  • 2
  • 4