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

How to do docker-compose down without the config file that made the up?

When you do docker-compose up, it's based on a docker-compose.yml file. This usually brings up a network, builds and runs multiple services. If you do the up with the -d flag, the docker-compose client detaches and let the servers alone. If you do a…
9
votes
3 answers

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 HTML files and CSS). I've attempted this, but I'm…
BugHunterUK
  • 351
  • 1
  • 3
  • 11
9
votes
2 answers

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 solution but it doesn't work fully for me as…
dzhi
  • 800
  • 3
  • 10
  • 26
9
votes
2 answers

Configure php-fpm to access environment variables in docker

I'm running php7-fpm in a docker container. However my php scripts aren't able to access environments variables set in my docker-compose file. getenv('MY_ENV_VAR') returns FALSE. I've changed /etc/php/7.0/fpm/pool.d/www.conf to include clear_env =…
Aidan Ewen
  • 291
  • 1
  • 4
  • 11
9
votes
1 answer

How to prevent docker containers auto-start at daemon start in Windows?

I am using Docker and its docker-compose functionalities on Windows 10. Right now when I run the command docker-compose up -d to start some containers in the background, the containers started will be running even after rebooting my Docker-Host.…
Octavian
  • 211
  • 1
  • 2
  • 5
8
votes
2 answers

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 appname_service_1, e.g. wordpress_app_1 and…
simonszu
  • 373
  • 7
  • 14
8
votes
1 answer

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 the Python script running on the other stack. I…
ロジャー
  • 223
  • 1
  • 3
  • 8
8
votes
2 answers

Where is docker volume stored in the host computer for docker-compose?

Consider the following docker-compose file version: "2" services: postgres: image: postgres:9.6 volumes: - ./vol_folder:/var/lib/postgresql ports: - "5432:5432" Here is my command history on my mac docker-compose up psql…
kevP
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

How to forward Docker container logs to ELK?

I would like to know what is the easiest way to forward my docker container logs to an ELK server, so far the solutions I have tried after having searched the internet didn't work at all. Basically I have a docker image that I run using…
ndarkness
  • 193
  • 1
  • 7
8
votes
3 answers

CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team

I'm trying to run docker-compose (which was installed via pip), yet running into following error: # pip install --quiet docker-compose # docker-compose ps /usr/local/lib/python2.7/dist-packages/paramiko/transport.py:33:…
alexus
  • 13,112
  • 32
  • 117
  • 174
7
votes
1 answer

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 this, I am trying to use kubernetes but I am facing…
Abdul Basit
  • 171
  • 1
  • 2
7
votes
2 answers

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

I have a docker setup for LEMP stack that I cloned from this repo. Everything works nicely on my development machine running window 10, but when I push the image to docker hub and pull it on my VPS no matter what I do I always get this error:…
samayo
  • 277
  • 3
  • 5
  • 17
6
votes
2 answers

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) My this Ec2 instance freezes automatically. I…
6
votes
0 answers

Is there a way to flush docker's embedded dns cache?

I'm working in an environment where sometimes the DNS server flakes out and tells you it can't resolve a host (eg. lookup of "github.com" fails). It's transient, and usually recovers fairly quickly. However, sometimes when it happens, it seems…
rascalking
  • 233
  • 3
  • 6
6
votes
4 answers

Using iptables rules aren't working with Docker container

Just set up an ElasticSearch container to use with company's Laravel app. Creating docker-compose.yml and running it is flawless and straight-forward but the issue occurs when I want to firewall this thing so that it's only accessible from one,…
dzhi
  • 800
  • 3
  • 10
  • 26
1
2
3
38 39