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
1
vote
2 answers

Use multiple dockerized Nginx behind a host Nginx

I have multiple and different dockerized applications, each one comes with its proper Nginx service which sends traffic to its containers based on some rules. I need to put those applications on the same server, so I added a new Nginx in the host…
mr L
  • 113
  • 3
1
vote
1 answer

docker - create two container got two different network id instead of using default bridge network

My goal was, that Jenkins container will "talk" with Ansible container in order to create Jenkins file for Jenkins pipeline. I was expected that those two container will "join" to bridge network and get 2 IP addresses of the same network id, but…
Hiddai
  • 67
  • 2
  • 10
1
vote
1 answer

Block port on Docker containers using iptables

I have a service running on port 3007 in Docker, it's set up like this: services: api: ports: - 3007:80 I tried adding a rule to the DOCKER-USER chain to block nonlocal traffic on that port: iptables -I DOCKER-USER -p tcp…
adrian
  • 113
  • 4
1
vote
0 answers

Docker mysql volume size is larger than the database size

Running a staging server using docker-componse.yml configuration, which has a MySQL service running with the following configuration services: database: image: mysql:8.0.17 container_name: qcg__staging__database command:…
Anuj TBE
  • 111
  • 3
1
vote
0 answers

How to connect local postgreSQL to docker (CVAT)

I'm trying to connect a local postgreSQL server (database name = cvat_lcl) to a container created using docker-compose: CVAT. I am able to use local pgAdmin to read the normal database hosted within the container (on port 5444), but the end-goal for…
1
vote
2 answers

Docker PostgreSQL change database encoding to UTF-8

I want to run via docker-compose a postgres container which has COLLATE and CTYPE 'C' and database encoding 'UTF-8'. But this looks to be impossible. This is the part on the docker-compose.yml: database: image: postgres:latest volumes: …
Philipp
  • 93
  • 1
  • 11
1
vote
1 answer

Nextcloud can't connect to Collabora

i've setup a docker host, and wanted to setup nextcloud with collabora-office. But it simply does not find the collabora host. my compose file is the following: version: '3.2' services: db: image: mariadb:10.5 restart: always …
Gooze
  • 11
  • 4
1
vote
0 answers

Can't connect Wordpress and MariaDB on LAMP stack with docker-compose

I'm new here and that's my 1st question so tell me if anything is wrong in the way I put it. So here's the problem: I'm building a LAMP stack with 3 separate containers for nginx, maiadb and wordpress. The whole nginx and php-fpm seems to work well,…
Youn
  • 11
  • 3
1
vote
0 answers

Docker compose simple routing for Mysql router

version: '3.1' services: Mysql: image: mysql-router:latest hostname: mysql-router environment: MYSQL_PASSWORD: 123456 MYSQL_HOST: 192.168.1.1 MYSQL_PORT: xx MYSQL_USER: xxx I would like to deploy a…
ycwong
  • 11
  • 1
1
vote
1 answer

psycopg2.OperationalError: could not connect to server: No route to host Is the server running on host “db” and accepting TCP/IP connections on port

Following the instructions here was fine on openSUSE Tumbleweed with Docker version 20.10.6-ce, build 8728dd246c3a https://github.com/mirumee/saleor-platform#how-to-run-it But on openSUSE Leap 15.3 with Docker version 19.03.15, build 99e3ed89195c…
user4838962
  • 231
  • 2
  • 14
1
vote
0 answers

Docker container communicate via a specific port oustide of Docker

So i'm currently facing the problem, that I'm not able to talk to a specific port, which is outside of my docker setup. To be exact: As you can see in the docker-compose.yml down below, i'm running nginx and php in my docker setup. I'm trying to…
1
vote
0 answers

Segmentation fault when running docker-compose

I've been running into a tough issue I sort out. Here is the context. First, the Dockerfile I'm using: ####################################################################### # BUILDER # Builds Toolset, SDK/PSW…
X99
  • 172
  • 2
  • 14
1
vote
1 answer

Redirect users with rewrite rules when using hosts file to map subdomains to localhost on Apache server

I am running an Apache 2.4 server in using docker-compose. I have a "main" vhost which includes rewrites paths which start with /test/ to a test subdomain: ServerName example.com RewriteEngine on …
1
vote
1 answer

Invalid Request Block Size with Nginx and USWGI

I am trying to load balance 2 Python apps using Docker and Nginx. App 1 is run using UWSGI and App 2 is run using default Python Server (I used default server for App 2 just for testing purposes. At the end of the day both should use UWSGI) The…
Mervin Hemaraju
  • 105
  • 2
  • 13
1
vote
0 answers

Connect to mongodb replicaset running on docker behing nginx proxy

I'm using docker-compose for mongodb replica set. Everything work fine on my host where docker is running. I had problems when I tried to connect from another client which is in the same network.I have exposed ports in my docker. version:…