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
0
votes
2 answers

Nginx downloads source code instead running it with PHP-FPM over Docker

I'm creating PHP backend app using Docker alpine-nginx, I need to redirect all requests starting with /api to run www/index.php file as it's built on MVC framework. Proxy_pass works great for the rest of the site with NextJS (React, Node) But Nginx…
sjiamnocna
  • 41
  • 5
0
votes
1 answer

How to create auto redirect to 301 https + proxy_pass in NGINX for one location /

This is my nginx config: server { listen 80; server_name example.com; server_tokens off; location /.well-known/acme-challenge/ { root /var/www/certbot; } location / { proxy_pass http://frontend:4200; # return 301…
0
votes
0 answers

Can docker compose execute a command at stopping?

Whenever a container is stopped, restarted or deleted, I would like it to execute a bash command for the host machine. E.g. fusermount -u /path/to/folder But I have not figured out a way to do this in the compose file. What I have in mind is similar…
user760466
0
votes
1 answer

In file './docker-compose.yml', services 'image' must be a mapping not a string

wordpress: image: wordpress links: - wordpress_db:mysql ports: - 8080:80 wordpress_db: image: mariadb environment: MYSQL_ROOT_PASSWORD: edureka phpmyadmin: image: corbinu/docker-phpmyadmin links: - wordpress_db:mysql …
0
votes
1 answer

In the bind mount "hostPath:containerPath:ro" what dose the ro part do?

How do I know I need to add the ro or not? I know the ro stands for read only but why would you need a read only bind mount? How would it effect my docker-composer-yml Example: Containerizing a python app // docker-composer.yml ... volumes: -…
Andrew
  • 1
  • 1
0
votes
0 answers

Connect redis-cluster(running in docker) from host machine

I have used docker-compose with static ip to create redis-cluster, everything ran successfully but now I am stuck at how do I connect my host application to redis-cluster running in side docker. version: '3' services: hdbrediscluster: …
HDB
  • 121
  • 1
  • 3
0
votes
2 answers

How to disable Docker Network Isolation?

I use gitlab, gitlab-runner, sonarqube, nexus, ... with docker compose to test build chains before implementing them on my company's servers. These servers use the same network bridge. This worked fine on my old ubuntu, but since I'm using debian,…
Balaïtous
  • 101
  • 3
0
votes
0 answers

Docker-compose erratic parameters reading

I'm trying to build a container stack for an application and using the .env file so as to pass the various parameters to be used during the build process. Stack Config: Docker version 20.10.14, build a224086d Docker Compose version v2.5.1 …
Raymond
  • 111
  • 5
0
votes
0 answers

nginx working fine in localhost but show 404 on server

i have a laravel based project that i have to host on digital ocean using docker. docker is working fine on localhost but shows 404 on server but phpmyadmin working fine on server as well which is running on 8080 port. Here's my docker-compose.yml …
rootShiv
  • 101
  • 2
0
votes
0 answers

ebtables not working in docker

Hi I am trying to run ebtables within docker however none of the ebtables rules are being hit. For example - pay attention that counters are not increased though ARP is sent and succeeds [root@injector /]# ebtables -A OUTPUT -p ARP -j…
Boris
  • 173
  • 1
  • 10
0
votes
1 answer

docker containaer promiscuous mode partially working

I have strange virtual (docker bridges) networking condition I have two dockers connected to the same bridge via docker-compose. One docker is "probe" and one is "injector". Injector uses tcpreplay to replay capture and "probe" should receive it via…
Boris
  • 173
  • 1
  • 10
0
votes
1 answer

Secondary IP not pingable from internet - Ubuntu 20.04 using netplan on Hetzner server

Let me start be saying I'm not an network expert. That being said, I'd need some help here as I'm breaking my head on this issue for two days now. I have several questions but will focus only on one specific one. I ordered a hetzner root server and…
0
votes
0 answers

Docker-compose: how to use Nginx Reverse Proxy with routing

I am using docker-compose with nginx reverse proxy to run it on server with different paths: server_ip/backend server_ip /frontend should work on port 80. I'm testing it with a docker-compose using nginx as the web container name and phpmyadmin as…
0
votes
0 answers

How to access hosts local network from a docker container?

I have two machines running in one local physical network in the office. One of them is exposed to world as a http web server (nginx on docker), the other one is not exposed to the world, it exposes a private service with API that should only be…
0
votes
1 answer

`docker-compose.override.yml` `restart: no`: containers still start up after reboot

In my base configuration I have a few services with restart: always and in my override configuration I have those services with restart: "no", but when I reboot the host the containers are started up again. I'm expecting the containers to still be…
Brady Dean
  • 101
  • 2