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
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
  • 188
  • 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
  • 710
  • 5
  • 14
  • 30
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
  • 2
  • 4
  • 13
2
votes
1 answer

502 Bad Gateway/ failed (111: Connection refused) while connecting to upstream

I have the following docker-compose xml web: build: nginx/. container_name: nginx ports: - "80:80" links: - "openchain" restart: always wallet: build: wallet/. container_name: wallet ports: - "81:81" restart: always …
Kendall
  • 247
  • 2
  • 4
  • 13
2
votes
1 answer

NGINX server says File not found

Am trying to learn the microservice architecture by building out services using lumen and docker. I have folder structure like…
MrFoh
  • 145
  • 2
  • 2
  • 10
2
votes
2 answers

Docker compose doesn't get picked up by reverse proxy

I have a docker-compose that creates a container with a http server that doesn't get picked up by jwilder's nginx reverse proxy but it works wen instantiated by hand. version: '2' services: mongo: image: tutum/mongodb expose: …
2
votes
1 answer

docker container not writing to mounted volume on host

I am having issue writing to the mounted volume on host filesystem from docker container Is there some special thing i have to do when building the container to make the container write data to the mounted volume on host for persistency? I have seen…
uberrebu
  • 503
  • 6
  • 17
  • 36
2
votes
1 answer

Lets encrypt SSL certificate in Docker container via nginx-proxy

currently I am using nginx-proxy to route my subdomains to different docker containers. Now, I would like to add a SSL certifcate to my Owncloud container but I am failing to set it up correctly. What I have done: Getting a certificate via…
caiuspb
  • 159
  • 1
  • 6
2
votes
1 answer

Getting "Can't create/write to file '/var/lib/mysql/is_writable'" using docker (inside vagrant on OS X)

I am trying to use docker-compose/docker inside a vagrant machine hosted on OS X. Running 'docker-compose up' always fails with mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (Errcode: 13 - Permission denied) I can manually create…
nielsbot
  • 223
  • 1
  • 3
  • 9
2
votes
2 answers

How can I prevent Docker Compose from copying saved volumes into a new container?

How can I prevent docker-compose up from copying saved volumes from the previous session into a container? In effect, I want Docker Compose to behave like docker run which discards the contents of private volumes when its container exits.
Derek Mahar
  • 901
  • 3
  • 8
  • 16
2
votes
1 answer

Docker mount command (mount failed: Unknown error -1)

I'm trying to migrate my existing application to Docker, it mounts an image but is getting an error: mount failed: Unknown error -1 These are the steps: Create an empty floppy image of 1.44 MB as root: $ /sbin/mkfs.msdos -C / 1440 Mount the…
gogasca
  • 343
  • 2
  • 15
2
votes
1 answer

Ngnix Reverse Proxy Setup SSL For Localhost In Docker

Using below docker compose.yml I am creating 2 containers and a reverse proxy container.. version: '3' services: # SSGTM Tag Server Container tagging_server_container: image: gcr.io/cloud-tagging-10302018/gtm-cloud-image:stable ports: …
2
votes
1 answer

Can't get Apache rewrite to work on Docker PHP-Apache container

I've followed suit to quite some instructions, tutorials, and also questions in this forum, but I can still not get this working. I've setup a REST API using a PHP Apache Docker container, and need to create a rewrite rule in my apache config to…
DevelJoe
  • 187
  • 3
  • 11