Questions tagged [docker-compose]
Compose is a tool for defining and running multi-container Docker applications.
619
questions
1
vote
2
answers
10k
views
docker-compose static ip does not work
I want to assign static ip to nginx, but it doesn't work at all. I have no idea where I'm doing it wrong. Could you please help?
docker.compose.yml
version: '3'
services:
web:
container_name: ...
0
votes
0
answers
301
views
Unable to pass the root MySQL password into an AWS ECS Fargate launch type WordPress deployment
I'm trying to figure out how to pass the root MySQL password into an ECS Fargate luanch type WordPress deployment. I'm working with this official AWS tutorial which provides this sample docker-compose....
1
vote
1
answer
1k
views
container cannnot connect to service from another container
I have the following containers running:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
12
votes
3
answers
37k
views
"docker-compose up" as root user or non-root user?
After reading some articles I'm still not sure about what user I should use to run a docker container. Are there any security concerns when running a docker container as root user? Is it ok to run ...
1
vote
1
answer
430
views
Make trusted self-signed certificate not register as "self-signed" (i.e. trusted) on private network
I'm currently implementing a private Docker Registry server with nginx configured to forward https traffic securely to the running Docker Registry (i.e. docker-compose) instance on a private network (...
0
votes
1
answer
1k
views
Apache Err 403 on static files from a docker volume
I am struggling with staticfiles and, since I'm new to docker and not quite fluent with Apache, I am not sure whether the problem comes from the former or the latter.
[the set up] I have a ...
5
votes
1
answer
18k
views
Docker Compose and multiple subnets
I'm struggling with Docker Compose (version 2 or 3).
I'm trying to add multiple subnets, so various services can reach each other, but get assigned IPv4 addresses from different subnets.
This is my ...
0
votes
0
answers
388
views
DBI connect('orthomcl:mysql_local_infile=1','root',...) failed
I have cat orthomcl/Dockerfile:
FROM debian:stretch-backports
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
cpanminus \
build-essential \
...
1
vote
0
answers
1k
views
docker-compose up exited with code 1 because of few InnoDB errors
I have cat orthomcl/Dockerfile:
FROM debian:stretch-backports
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
cpanminus \
build-essential \
...
1
vote
1
answer
592
views
docker-compose up caused orthomcl_orthomcl_1 exited with code 0
I have cat orthomcl/Dockerfile:
FROM debian:stretch-backports
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
cpanminus \
build-essential \
...
2
votes
0
answers
1k
views
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
My environment:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
# uname -a
Linux X.Y.Z 3.10.0-957.12.1.el7.x86_64 #1 SMP Wed Mar 20 11:34:37 UTC 2019 x86_64 x86_64 ...
5
votes
1
answer
5k
views
Podman: Method to convert docker-compose files to systemd unit files
I'm migrating away from docker towards podman (not going straight for kubernetes, as that would definitely be overkill at this point).
Now, many an elegant configuration can be had as docker-compose ...
0
votes
1
answer
477
views
How to properly get code logs from container in host using docker compose and volumes
I am trying to understand how to share logs generated by a toy project into a volume. The logs are generated inside a docker container.
For this, I am using docker-compose version 3.
So far, I built ...
2
votes
1
answer
11k
views
docker-compose build --no-cache not working
I made some updates on a Dockerfile for one of the services, but the changes are not reflecting, when running docker-compose build, not even with --no-cache option.
I added two two parameter before ...
3
votes
3
answers
12k
views
How to setup IPv6 with docker-compose
I am using Ubuntu 18.04 on DigitalOcean, with IPv6 turned on:
PUBLIC IPV6 ADDRESS:
xxxx:xxxx:2:d0::216f:3001
PUBLIC IPV6 GATEWAY:
xxxx:xxxx:2:d0::1
CONFIGURABLE ADDRESS RANGE:
xxxx:xxxx:2:d0::216f:...
2
votes
0
answers
32
views
What is the difference between creating a volume in docker-compose and in docker file?
I discovered docker-compose a few days ago.
I saw that it has a neat way to create volumes for serveral containers without any problems.
However, as far as I know it is possible to do the same in the ...
1
vote
1
answer
2k
views
redirect to a different localhost based on url nginx
I'm using docker to create multiple containers and I'm trying to redirect calls coming to my website to the relevant container. for example, if someone tries to go to http://wavenapp.com/bot/test1/...
4
votes
0
answers
6k
views
How do I do a correct reverse-proxy to a Redis instance?
I'm running an application called Ambar on a (Samba)fileserver. I want users in my network to be able to search for documents freely, and securely. Since Ambar runs on HTTP, and the server already has ...
1
vote
2
answers
8k
views
Why am I getting sh: /dev/fd/63: Permission denied process substitution (anonymous pipe)
I have a shell script that adds users from a csv to a running nextcloud instance. The nextcloud instance is running inside docker containers. For some reason, I am getting an error from the line that ...
1
vote
2
answers
861
views
NGINX use root directive in if-clause
I´ve got an NGINX docker container which receives requests at port 8089 (Reverse proxied by an NGINX on my main system). It should then retrieve the $host variable to determine the correct root ...
11
votes
3
answers
34k
views
How do I give a docker container its own routable IP on the original network?
Main question
Imagine this scenario.
A network of 192.168.0.0/24.
A computer with hostname 'Docker-Host' is running a docker engine at
192.168.0.2
'Docker-Host' has sshd server running
On 'Docker-...
2
votes
0
answers
2k
views
Docker errors - Nginx keeps looking for files under /etc/nginx/html
I have a seperate docker container setup with Lesencrypt (using nginx, nginx-gen, nginx-letsencrypt)
The Nginx and app containers are working fine but I see errors in Docker logs for Nginx.
I have ...
5
votes
1
answer
51k
views
How do I access nginx server logs from within Docker?
I have Nginx routing requests from the browser to either the Express API or my react server, however, in the console I continue to get xhr requests that are just pending and then timeout with 502 bad ...
31
votes
5
answers
16k
views
Docker turn anonymous volume into named volume
I have tried out a docker image using the docker command line without specifying names for volumes. Now I found that I want to continue using this container/image but by defining the container in ...
0
votes
1
answer
243
views
logstash charset error (gelf)
I had some trouble with Logstash and Nginx (all running on Docker).
On my docker-compose file i was trying to enable logging from Nginx container to Logstash:
nginx:
container_name: nginx
image: ...
2
votes
2
answers
563
views
Cannot block port 21 and 5222 via iptables (due to docker?)
I'm trying to get just port 80, 443 and SSH open on my Ubuntu VM. I'm running Docker which I think is what is causing port 21 and 5222 to be visible.
telnet HOST 21
Trying HOST...
Connected to HOST.
...
2
votes
2
answers
16k
views
Prometheus container connection refused
I have prometheus , nginx-vts , php and nginx-vts-exporter all in separated containers i'm trying to get metrics to prometheus from the exporter ,, it keeps telling me
Get http://127.0.0.1:9913/...
1
vote
1
answer
464
views
Unable to set network mode host in azure container
I'm trying to set up network_mode: host in my docker-compose file in scope of my azure web app for container. But it looks like this setting is ignored according to logs. There is no --network ...
2
votes
1
answer
5k
views
Serve Django Media Files via Nginx (Django/React/Nginx/Docker-Compose)
Context
I have a single page web app using the following stack:
React for the frontend
Django for the backend
Nginx for the webserver
The web application is dockerized using docker-compose. My ...
1
vote
0
answers
767
views
Docker compose sometimes fails to bring up a docker container
I have an automated test that brings up a RabbitMQ container which occasionally fails because the container is stuck in ‘Created’ with no ports exposed. This can be reproduced, but not every time.
...
3
votes
2
answers
47
views
Which tools simplify administration tasks with Docker containers? [closed]
Context: My task is to administer a virtual machine with about 5 web services for a small workgroup. I plan to run all services in Docker containers. An additional nginx Docker container should ...
2
votes
1
answer
9k
views
TCP connections between docker containers timeout after ~10000 connections
I have 2 containers defined in a docker-compose.yml file, and am using them to run some rspec tests in a CI pipeline - the first container executes the tests, the second is an nginx container that is ...
7
votes
1
answer
3k
views
WEBRTC MCU/SFU inside kubernetes - Port Ranges?
I am using janus-gateway as a webrtc media server for group videocalling. Previously I had deployed it in a single node using docker-compose but now I want to be able to scale it horizontally. For ...
2
votes
0
answers
1k
views
Not able to reach container running in a localhost docker swarm cluster
If that's interesting: OS: WIN10 (cygwin), code written in Java. I am using hyperv VMs as stated in this guide: this
I'd expect to reach the service in front of the container, which is running on ...
1
vote
0
answers
114
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 ...
2
votes
1
answer
4k
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
1
answer
4k
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 ...
0
votes
0
answers
440
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:
...
2
votes
1
answer
1k
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
1
answer
701
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
1
answer
696
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
0
answers
385
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
1
answer
2k
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 ...
2
votes
3
answers
4k
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 ...
9
votes
3
answers
33k
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 ...
1
vote
1
answer
1k
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 ...
3
votes
0
answers
8k
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 ...
1
vote
1
answer
2k
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 ...
4
votes
1
answer
1k
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 ...
2
votes
0
answers
2k
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 ...