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
3
votes
1 answer

Can't access port 80 (nginx) exposed through Docker, other ports work

(I originally created this question on StackOverflow but it was closed saying that it belongs in ServerFault) I would like to use a Docker container on my Raspberry PI (machine A) to act as a VPN proxy for a specific website, and access that…
Bruno Pérel
  • 131
  • 1
  • 1
  • 5
3
votes
2 answers

How to know how the docker container is started

A few containers which are started from a docker-compose file are running on the VM. but I don't know where is the docker-compose file, how to figure it out? Furthermore, If there is a container start using "docker run", how to check the parameters…
Jim
  • 131
  • 1
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
  • 132
  • 1
  • 7
2
votes
1 answer

Serving some js/html files by php-fpm

I have a setup of docker-compose having nginx and wordpress. I followed one of the tutorials across the web and everything seems to work fine. BUT I have one critical plugin which generates a couple of html/js files directly via PHP. Meaning HTML…
nKognito
  • 127
  • 6
2
votes
1 answer

Docker compose restart policy

I know about the docker compose restart policy, i have Alfresco 6.2 image i want to make it start automatically when server reboot, but i dont know when to add the lines in the docker-compose.yml this is the file: # This docker-compose file will…
Ayoub Skikra
  • 21
  • 1
  • 2
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
  • 183
  • 3
  • 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
  • 483
  • 1
  • 5
  • 7
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
4 answers

docker-compose only exposing one network to the outside world

I have a new application that I've created via a docker-compose file. This file contains 2 networks: version: '2.1' # ---------------------------------- # Services # ---------------------------------- services: application: image:…
Blue
  • 129
  • 1
  • 13
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
  • 1
  • 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
  • 1
  • 4