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.

529 questions
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

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
  • 4
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
  • 201
  • 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
  • 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
  • 887
  • 4
  • 14
  • 22
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
  • 2
  • 4
2
votes
1 answer

Prepare docker installation for "offline" environment

We're going to deploy our codebase in an environment with no outbound internet access - using docker. However - we do not seem to be able to pre-build the entire thing so we don't have to pull images from any repository. The server is prepared with…
2
votes
1 answer

Couchbase and sync_gateway on docker

I'm trying to set Couchbase and sync_gateway in docker containers, but I get some weird auth errors when sync_gateway tries to connect the database. Couchbase is running ok on its container, and when I set the sync_gateway to use a GUEST user it's…
2
votes
1 answer

How do I make exceptions to Docker namespacing?

Via /etc/docker/daemon.json, I've configured a user namespace using userns-remap. I'm trying to start a nginx-proxy container, but it requires access to the Docker socket, which requires it to be real root. The namespacing breaks this, causing an…
M-Pixel
  • 169
  • 8
2
votes
0 answers

How to redirect request from one container to another when .php files are called

I am working in a LAMP stack using Docker and Docker-Compose and I am stuck since I am not able to execute PHP files meaning anytime I try http://localhost/index.php I end with the following 403 message: Forbidden You don't have permission to access…
ReynierPM
  • 700
  • 5
  • 14
  • 28
2
votes
1 answer

Docker : images

I'm new to docker and I'm using a compose file to build from a Dockerfile and run and image for me I have the following yml file version: '2' services: multichain: build: ./ image: ubuntu:15.04 read_only: false volumes: -…
Kendall
  • 247
  • 1
  • 3
  • 13