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.

1
vote
0answers
8 views

prohibit use of ip adress to access to website (use of container nginx reverse proxy)

I use docker compose to run two containers: one with a nginx reverse proxy (nginx-proxy) one with netdata I want to disallow access to netdata with the ip address. This IP cannot get certificate (I ...
0
votes
1answer
43 views

How to restrict external access to ports exposed by Docker containers, while still allowing links to work?

I have a couple services running on a machine in docker containers that need to be available to a specific IP address, and need to be available to containers with links (as defined in a docker-compose ...
0
votes
1answer
7 views

redis-sentinel Docker container can't resolve master instance hostname

I'm trying to set up redis-sentinel from bitnami and I'm getting the following error: redis-sentinel_1 | nami ERROR Unable to start com.bitnami.redis-sentinel: redis-sentinel_1 | *** FATAL ...
-1
votes
0answers
22 views

Howto Convert docker run to docker-compose.yml [closed]

I want to convert the command below to docker-compose.yml Source: https://hub.docker.com/r/gui81/alfresco docker run --name='alfresco' -it --rm -p 445:445 -p 7070:7070 -p 8080:8080 \ -v '/host/...
0
votes
0answers
23 views

Embedded DNS stops working after installing and starting firewalld on CentOS 7 container

I have two dockers that run from docker compose: version: "3" services: sqa: image: sqa ports: - "80:80" hostname: sqa networks: - robottest_net tty: true slave: ...
1
vote
1answer
17 views

AWX docker-compose stop not working

I'm pretty new to docker-compose and I can't seem to make this work. I have been following this guide for installing AWX and has been successful so far. But when trying to stop everything using ...
0
votes
1answer
26 views

Why does nextcloud in a docker container not see my none docker mariadb

I have searched for this question on the internet, but found only topics the other way around. (connecting to a mariadb in a docker container). I'm in the process of installing nextcloud in ...
0
votes
1answer
22 views

Docker compose doesn't reuse the intended anonymous host volumes on container recreation

I have an Ansible container and when I have developed a docker-compose file create the container. version: '2' services: ansible_tower: image: ybalt/ansible-tower:latest ports: - "333:...
1
vote
0answers
43 views

Nginx, Docker-Compose and Let's encrypt connection refused, unless i disable ssl

I have a docker-compose project which require ssl, and i want to use let's encrypt certbot which I want to incorporate into the docker-compose file for auto renewing. I followed this tutorial from ...
1
vote
0answers
18 views

Docker Compose WP permissions

I've a docker compose creating a WP container. The container has a more recent version of WP than the one I'm trying to import, so WP ask me to update the database and some folders. The update process ...
0
votes
1answer
21 views

Docker compose db not starting

I have this docker-composer.yml file that starts 4 services: a web portal, a mysql db an elastisearch and kibana service. If I use as db image mysql:latest, I see all 4 services starting. But if I ...
0
votes
2answers
37 views

Docker: how to sync date between a CentOs host and a Debian container?

I have a CentOs host running a docker Debian container. The container has the wrong localtime and timezone: how can I synchronize it with the host date? I'm trying with mounting volumes on the ...
0
votes
1answer
47 views

nginx and php-fpm: “Primary script unknown” while reading response header from upstream

I want pass any api/* route to php-fpm. Specifically to index.php as I use Symfony. This is the only route that should use php. Anything else will be loaded from /usr/share/nginx/html/public (just ...
0
votes
1answer
48 views

OpenResty with Docker Compose cannot resolve own name (hostname.domainname) in Lua block

I have a docker image containing an OpenResty server. I am running it within a docker-compose file like this: version: '2.1' services: dev.example.com: # etc. If I set the resolver to use the ...
1
vote
0answers
123 views

Using Environment variable in proxy_pass nginx

I have nginx container where I want to forward an api call to another server. I want to pass in environment variables from Docker Compose to be able to change sites, without rebuilding the Docker ...
0
votes
0answers
36 views

How can I monitor my Cassandra Docker Image with Prometheus?

I am trying to monitor a cassandra docker instance from a prometheus docker instance. I'm getting confused as it seems there is many possibilities and packages to do so. Right now, prometheus says: ...
0
votes
0answers
84 views

Docker-compose stop does not stop all containers

I have a test rails 5.2.2 app running in docker and reports no errors in console but when I run docker-compose stop there is 1 container which doesn't stop. My o/s is macos running Docker for Mac. The ...
2
votes
1answer
60 views

Why isn't firewalld filtering the services running in my Docker containers?

My services were filtered correctly after migrating from iptables to firewalld and updating the rules with firewall-cmd. Then I moved all services to containers using Docker, and ran everything with ...
0
votes
0answers
70 views

running mongodb with ssl and docker secrets docker-compose sample

I'm new to docker. The developers on my work create a docker-compose with mongodb and asp.net core application setup, although its funcional, they didin't setup SSL for the application, mongodb isn't ...
2
votes
1answer
96 views

What are proper iptables Rules for Docker Host?

I have Ubuntu server with Docker to serve MySQL and SSH/SFTP and I need all ports except 3306 and 22 to be firewalled, pretty standard and trivial requirement, right? Now, I managed to find a sort of ...
0
votes
0answers
112 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
141 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
129 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
25 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
1answer
58 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
79 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. ...
5
votes
2answers
1k 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
29 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 ...
1
vote
0answers
86 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
956 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
38 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
3answers
1k 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
185 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
1answer
78 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
413 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
141 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
88 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
193 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
204 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
97 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
122 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
14 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
224 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
48 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
73 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
125 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 ...
2
votes
0answers
177 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
493 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
209 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
41 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 ...