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
3
votes
3 answers

How to install docker-compose on Fedora CoreOS

I have been using Fedora CoreOS version 31.20200505.3.0 on digitalocean (image took from here https://getfedora.org/coreos/download?tab=cloud_operators&stream=stable) Default user core, but need elevation to use docker Installing docker-compose via…
Andriy F.
  • 133
  • 1
  • 5
3
votes
1 answer

Php+Nginx+Varnish on docker-compose, ubuntu18

!Important. SOLUTION FOUND. Everything below is working fine for me. And this is almost the only case when you may copy solution from the question. For it read "My Configuration" section Main Question On an attempt to open the homepage (through…
zhartaunik
  • 133
  • 1
  • 6
3
votes
2 answers

set time period to restart a container with docker-compose

how would you do to restart the container service every 60 seconds I tried sleep but it doesn't work for me: spark: image: jaegertracing/spark-dependencies environment: - STORAGE=elasticsearch - ES_NODES=http://localhost:9200 …
user482363
2
votes
2 answers

Nginx reverse proxy with variable names for docker container returns wrong files

I read a lot and tried a lot, but in the end, nothing worked. I hope, you can help me. So here is my setup: I have a Docker-compose file which contains a phpmyadmin container. My problem is not limited to phpmyadmin, this is just a good…
schube
  • 163
  • 2
  • 9
2
votes
1 answer

How to access mysql console on Docker container using secrets

I've been able to access Mysql console on a Mariadb Docker container. From my local machine I can run this command to access the console (I have mariadb installed locally): mysql -h localhost -P 3306 -u lc -p --protocol tcp The issue rise when I…
a.barbieri
  • 403
  • 1
  • 5
  • 7
2
votes
0 answers

Docker volume mount subdirs without overwriting entire target

I have the following scenario. I have a backup extract, this exists in a local folder ./app_backup. Example directory structure inside this: …
emmdee
  • 1,935
  • 9
  • 35
  • 56
2
votes
0 answers

Docker-compose exposing port when reusing network

I am trying to get a set of containers to work together with a OpenVPN-client. I used this as a template and build my own container (on a Raspberry Pi, so i cannot use the prebuilt image right away). So far it works like a charm, using the…
gelse
  • 21
  • 2
2
votes
1 answer

Configure gitlab-ci.yml to run pytest in docker container on Gitlab CI

I have a Cookiecutter django project which uses Docker. I write my tests using pytest and I run my tests using docker-compose -f local.yml run django pytest. My local.yml file is in my root dir (where manage.py is) I want to run these tests…
2
votes
1 answer

Is it possible to run Ubuntu server on Docker?

My team has been developing our project on Ubuntu 16.04 server running on VirtualBox. As new developers come join our project, it is a big hassle for us help them create a new Ubuntu server on VirtualBox and install all the dependencies just to…
Jay
  • 189
  • 2
  • 8
2
votes
0 answers

Nginx timeout error using Docker and nextcloud-fpm

I have a docker-compose file using nginx, nextcloud-fpm, mariadb, and redis (see below). The mariaDB and Redis connections appear fine, however I can't get any kind of web interface (accessing via nginx port 80) to work. Each attempt to connect…
2
votes
0 answers

docker-compose containers do not resolv hosts /etc/hosts entries

On my host machine (arch linux) I have a somewhat long list of entries in the /etc/hosts file resolving to remote machines (that are not under my control). The Docker containers of a development project that I recently inherited use the domain names…
2
votes
2 answers

How to get detailed error message using docker-compose up? I can only see "command returned non-zero code"

I'm trying to run my docker-container on linux. During build I'm encountering an error after running this command: sudo docker-compose -f docker-compose.yml up --build docker-compose shows this message: Step 10/19 : RUN dotnet restore…
Piotrek
  • 123
  • 1
  • 4
2
votes
0 answers

Docker compose project in Azure with multiple yaml files?

I am currently constructing a docker project that is to be quite generic in question, to work with several of our sites. The way I have solved that is to have multiple docker-compose yaml files, one main file containing all common configuration and…
2
votes
1 answer

How can I bypass mailhog in Docker4Drupal?

I am using Docker4drupal, a preconfigured set of docker containers. One of the containers is the mailhog tool. Docker4drupal is configured to use mailhog as email sender so it captures all mail sent for developing purposes. This is great but I would…
Edu
  • 23
  • 2
2
votes
0 answers

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 x86_64 GNU/Linux # rpm -qa | grep…
alexus
  • 12,342
  • 27
  • 115
  • 173