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

docker-compose access ports externally

I'm sure this question has been answered before, but I cannot find a simple solution anywhere. I have multiple docker-compose projects running on a single host, with unique host port mappings. I'd like to access a Flask API from outside the server,…
port5432
  • 171
  • 2
  • 4
  • 16
1
vote
1 answer

Unexpected port 8080 on docker ps

I use docker-compose up to start a container, and then use docker ps to display its info, I see the PORTS part is as below 0.0.0.0:2280->2280/tcp, 0.0.0.0:7000->7000/tcp, 8080/tcp the 8080 is unexpected. the image-building Dockerfiles is: FROM…
lily
  • 165
  • 1
  • 7
1
vote
1 answer

Errors while restoring mariadb/mysql dump in docker

I'm running mariadb in a docker container. I want to backup and restore using a sql dump. I created the database for use with wordpress, and created just one test page. I installed phpmyadmin to the same database. I created a backup like…
lonix
  • 757
  • 9
  • 20
1
vote
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
  • 119
  • 1
  • 13
1
vote
0 answers

Overlay network in docker swarm not working

This is my setup: https://github.com/czpo/docker-reverse-proxy So there is a simple nginx/php stack called "site1" on the worker, and when I put a reverse proxy on the worker node it will load that site in the browser. But if I put the RP on a…
1
vote
0 answers

Debugging a basic nginx upstream issue

people of serverfault. Started dabbling in docker with nginx and nodejs, and I'm having a bit of trouble figuring out how to debug my issue here. I'm running 3x nodejs containers and 1x nginx load balancer in front of them. I can spin up the…
remus2232
  • 11
  • 1
1
vote
1 answer

Use ansible to pull docker image but not run it

I'm using ansible. I want to upload a docker-compose.yml and pull its images, but not start them. I tried this, but it also starts the images: - name: dc docker_compose: project_src: /srv/foo/ state: present pull: true stopped:…
lonix
  • 757
  • 9
  • 20
1
vote
1 answer

trying get a working version of ELK (elastic search + kabana) with docker-compose

So I've spent the last 6 hrs doing this and successfully got it to work with 2 separate docker containers (I just do a docker pull kibana:7.3.2 and docker pull elasticsearch:7.3.2). The tag seems to be important for some reason as latest gives me an…
MrL
  • 111
  • 2
1
vote
0 answers

Docker Compose access specific internet domains/ports without "--net=host"

By default, none of my docker-compose containers have access to the internet. We can expose ports to the host, but not from the internet. Any solutions on the web point me towards using network: host or --net=host, but this would almost totally miss…
fameman
  • 111
  • 2
1
vote
2 answers

Permission denied (publickey) in gitlab self hosted server

I want to setup a ssh connection to my gitlab server. gitlab spec Install via docker-compose : # ---------------------- # # gitlab # # ---------------------- # gitlab: image: gitlab/gitlab-ce:latest restart: always hostname:…
Hadock
  • 123
  • 6
1
vote
1 answer

Route traffic from one docker container through a VPN (provided by a second container)

I need to understand how to make two docker containers work with a scenario like this: There is a branch office with a router and a client. The network is 192.168.190.0/24 and the addresses are 1 and 57. There is somewhere else a VM facing on the…
1
vote
1 answer

Does docker network somehow block access to its host from certain IPs?

My company has a CentOS 7 server with some running docker containers. Normally I can connect to it from my personal computer . But sometimes after I run a docker-compose up command on the server, I cannot connect to it anymore (I try to ping /…
Hien Le
  • 13
  • 3
1
vote
2 answers

Web base application-load balancer

I have two application Java base and Go base application. What is the best way to build a traffic distribution that will send 30% of request traffic to Java base application and 70% to Go base application using load balancer. This activity will be…
Lloyd
  • 11
  • 1
1
vote
0 answers

docker-compose detaches from containers after going up

I'm experiencing a very weird issue inside the terminal. I am using docker-compose to start my microservices, and when I run docker-compose up I see all the logs that containers are producing immediately. However, just after docker-compose up…
Zed
  • 111
  • 2
1
vote
3 answers

Nginx on Docker cannot access bind mount

Summary: I'm trying to set up an Nginx container as part of a Docker stack. I want to use a bind mount to make a folder on my computer available to the container as /data/www, and use that as the root folder for Nginx to serve content from. The…
Máté Safranka
  • 121
  • 1
  • 6