Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [docker-compose]

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

0
votes
0answers
19 views

Mounting named volumes between containers

I'm new to docker, and having difficulty with docker volumes. I have two containers, call them A and B. A has a filesystem with config files which B needs to read. In my Dockerfile for A, I have "...
0
votes
0answers
26 views

How to setup Gitlab-omnibus with nginx and https?

I would like to understand, where I made a mistake in this config - gitlab in docker-compose with https and own nginx. first, i create self-singned certs. second, docker-compose.yml nginx: ...
0
votes
0answers
19 views

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: ...
0
votes
1answer
24 views

Share node_modules binary between containers in docker-compose

I would like to run a binary npm file in a container which was installed by another container. I understand that it is possible using a shared volume. I have the following configuration: docker-...
0
votes
2answers
64 views

ubuntu 18.04 docker swarm ipv6

Unfortunately I am not able to dump configs in here so I will attempt to describe. I have a docker compose file, when I do a docker up on it things work fine. However, when I start it with docker ...
0
votes
0answers
15 views

Change php user with docker-compose

The documentation for Docker PHP image says "For running the FPM variants as an arbitrary user, the --user flag to docker run should be used". I'm using PHP in docker-compose and want to change the ...
0
votes
0answers
29 views

Recreate container with docker-compose before restart

We deploy a service with Docker-compose. The worker container sometimes get down, so we set up a restart: always policy. But we need the container to be recreated each time it gets down, to start from ...
0
votes
1answer
38 views

Nginx with docker load balancing app server (php)

I haven't found an solution so far, so I'm asking here: This is the situation I'm locking an solution for: We are planing an architecture that contains the following components Docker Container (...
0
votes
1answer
27 views

How to remotely deploy Docker services on an existing Digital Ocean droplet?

I've got a docker-compose.yml file which defines 3 services: MySQL db, ASP.NET Core api application and Angular application. The last two images are built locally, not pulled from a remote repository. ...
3
votes
2answers
846 views

How to prevent docker-compose appending hashes to created container names?

I have a server with several lxc containers. In some of the containers there is a docker installed. Usually a docker compose action in these LXC containers results in container names with the format ...
0
votes
0answers
86 views

Docker. Can't connect to node container from nginx container

I can't connect to frontend container when it's a bridge network. Nginx container show the error when I open domain.com: nginx | 2018/10/23 14:56:22 [error] 6#6: *1 connect() failed (111: ...
0
votes
0answers
27 views

Docker bridge to host communication

I have a few containers running on the network within my house, I have the following containers set to use the same external network, created via docker network create web: container1 container2 ...
0
votes
0answers
22 views

How can I passthrough a wifi usb in docker? [duplicate]

I want to create a docker image that creates a wifi access point with hostapd, but I don't know how to pass it through or even whether it's posible. PS: I want to passthrough only the wifi usb device,...
1
vote
0answers
43 views

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 ...
2
votes
1answer
407 views

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 \ && ...
1
vote
1answer
26 views

connection between two docker containers of two stacks

I am building on two projects which share some common data. The services of the two projects are built from two docker-compose YML files. I want to access the MySQL server specified in one stack from ...
1
vote
2answers
669 views

Docker + Nginx + PHP-FPM error: [emerg] 1#1: host not found in upstream

I have been on this error for 3 (full days) and still trying to figure out the issue and at the same time contemplating suicide :) I have a docker setup for LEMP stack that I cloned from this repo: ...
0
votes
0answers
84 views

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 ...
0
votes
0answers
39 views

Redis Sentinel not respecting announce-ip option

I am attempting to create a redis-sentinel cluster using docker-compose on my system and have it visible to the host machine (this is to try and replicate an application that is going to use redis-...
0
votes
0answers
167 views

Connection between containers fails with java.net.NoRouteToHostException: No route to host (Host unreachable)

I am using the docker-compose.yml from here. However, the connection bewteen the 2 containers (sonarqube to postgres) fails with the following error: sonarqube_1 | java.net.NoRouteToHostException: ...
1
vote
0answers
85 views

docker compose containers not given access to host

I have a question very similar to this one: Iptables rule-set so that a docker container can access a service on a host IP where my containers are not being allowed to access the host. The problem ...
0
votes
1answer
47 views

Consul, vault and postgres containers don't communicate

I'm trying to set up Consul with Vault for secrets management for Postgres with Docker. Here is my configuration Dokcerfile: FROM python:3.6-slim ENV VAULT_VERSION 0.11.1 ENV CONSUL_VERSION 1.2.3 ...
1
vote
1answer
86 views

how to move docker-compose containers stack to another host

I have a project running on a host using docker compose. Can anyone advise me on how can I move the docker-compose containers to another host?
1
vote
1answer
85 views

EC2 Instance Freezes

I am experiencing sudden freezes in one particular instance. Here some details of the instance: Type: t2.micro Region/av. zone: us-west-2b OS: amzn-ami-hvm-2018.03.0.20180811-x86_64-gp2 (ami-a0cfeed8) ...
0
votes
1answer
67 views

Generate LetsEncrypt Certs to NFS share

Im trying to generate a letsencrypt wildcard cert to use on various websites (one FQDN, multiple subdomains). The plan is to save those certs on a NFS share I have to easily access them on various ...
3
votes
0answers
88 views

Should I use systemd or docker-compose to keep Docker containers running on my systems?

We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines. Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're ...
0
votes
0answers
11 views

Scaling containers in Docker-compose and assign each one with a different network

I want to implement a scalable star-like network topology with docker containers. A sketch of the topology I'm aiming to is on the following URL: https://i.stack.imgur.com/pYx4q.jpg I have one ...
0
votes
1answer
81 views

Force Ansible to log off to refresh user groups

I'm setting up a server with Ansible and Docker. I'm currently learning both technologies, so please bear with me if I'm being overly stupid here. In order to run run Docker commands, the user has to ...
-1
votes
1answer
47 views

Reverse proxying multiple different dockerized HTTPS services

I have two services, both neatly dockerized, each with their own docker-compose.yml. Each services has its own domain name. Both services uses HTTPS and have Lets Encrypt certificates. Both ...
0
votes
0answers
49 views

Dockerized Gitlab-runner can't find Gitlab container

Beginner here :) I’ve set up a Gitlab instance on my company’s local network. It is hosted in a docker container, running on a dedicated server, whose hostname is “devserver” This Gitlab instance is ...
0
votes
0answers
100 views

Is it possible to run OnlyOffice Document Server on a non-443 SSL port?

I'm on the current AWS Ubuntu 64-bit image. I've used snap to install Nextcloud. My goal is to have both Nextcloud and OnlyOffice on this server instance. I've tried the docker image with the -p ...
1
vote
0answers
101 views

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....
0
votes
0answers
343 views

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 ...
1
vote
2answers
148 views

Docker Composer - Failing to run my webapp and mysql images

I am new to docker and I am struggling to have the below scenario working: I have a working webapp image that uses alpine with tomcat 9 as a base image and a added my web app along with a series of ...
0
votes
1answer
36 views

Save Docker containers as single image

I don't have much experience with Docker so not sure if this is even possible, but I'm trying to export my Docker containers as a single image. I've created a web server using various images from the ...
0
votes
1answer
350 views

docker has volume permission but docker-compose doesn't

I have installed Docker on an Amazon Linux server and given it permissions with sudo usermod -aG docker $USER. When I start my Jenkins docker containers (which have the home directories on an EBS ...
0
votes
1answer
117 views

Temporarily expose docker container

Recently I have been working a lot with docker, especially docker-compose. Oftentimes I have some container running along with a database and sometimes I want to inspect the data of the database with ...
0
votes
0answers
101 views

nginx 404 on php files in subdirectory

I just learn to use docker to spawn all the required container (nginx, mariaDB, php, etc). As for nginx, I have my default.conf file which I specify as follow version: '3.3' networks: LEMP: ...
0
votes
0answers
11 views

Attach Docker Container to one default network

I am trying to attach a docker container to two external networks. Its doing the job fine. However, I would like to attach container to one network as main network. In below scenario, It should ...
0
votes
1answer
498 views

Connection Refused Error Nginx Nodejs

I am following this YouTube tutorial on how to configure Nginx Server on Docker but I am getting the following error proxy_1 | 2018/07/14 22:18:24 [error] 5#5: *1 connect() failed (111: ...
0
votes
1answer
35 views

Ellakcy moodle-compose repo: Used the solution but I get 303 redirect loop

I used the docker-moodle solution offered from ellkcy's repository that used their built docker images. But for some reason I get a 303 redirect loop and the browser fails to load the moodle. Over my ...
0
votes
0answers
34 views

How to get env vars in Docker Compose image to show up in registry?

I have a Docker Compose file. The Docker Compose file has an env_file: section in it. When I run the image locally, things work properly and the env vars populate as expected. However, when I run ...
0
votes
1answer
339 views

Moodle behind ssl reverse proxy: “Reverse proxy enabled, server can not be accessed directly, sorry.”

I tried to make moode run behind a ssl reverse proxy using this solution but I get the following error: Reverse proxy enabled, server can not be accessed directly, sorry. Please contact server ...
1
vote
1answer
21 views

docker-compose response interactively to docker output

I have the following docker container: FROM debian:stretch-backports RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ ruby ruby-dev \ ...
0
votes
1answer
272 views

Docker Error creating external connectivity network

i am trying to deploy a portainer/agent stack with the recommended docker compose configuration as suggested in the official documentation (https://portainer.readthedocs.io/en/stable/agent.html), and ...
0
votes
0answers
38 views

How to distribute docker application stacks?

I’ve got a relatively simple enterprise app stack - a database, app server and HTTP server. I’m trying to figure out how best to distribute it. Just a docker compose file might work for some ...
1
vote
0answers
239 views

Why is my Docker Symfony project with Composer consuming so much memory?

Description I'm deploying my symfony project in prod. It works fine when I simply run docker-compose up. However I'm getting an issue with my deploy script and try accessing the web page in my ...
2
votes
4answers
827 views

Configuring Docker to use not use the 172.17.0.0 range

Due to problems with captive portals and the default Docker IP range I am trying to make Docker use the 198.18.0.0 range, instead of 172.17.0.0, which clashes with the captive portals used on the ...
0
votes
1answer
575 views

docker-compose link with container running on host network

I have a postgres container running as host network_mode and a Nextcloud container running on default (bridged) network with port 8080:80. How can I link the containers so that Nextcloud can access ...
-1
votes
2answers
2k views

Docker run file not found

I am trying to write a simple dockerfile that wraps around a bash script. The docker file looks like this: FROM openjdk:8-jre-alpine COPY . /build/demo WORKDIR /build/demo/ RUN pwd; ls RUN chmod +x ...