Questions tagged [docker-compose]

Docker-compose is a tool that is able to run multiple container by issuing `docker-compose up`. One of the features is that DNS mappings could be made between the containers so that they can find each other.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

How to add to a list for a Docker yaml extension

Is there a way with docker-compose to allow extension fields to add fields to a list? I've tried a whole bunch of combinations, but haven't seen if there's a way to do this What I want to do is have a ...
0
votes
0answers
24 views

Good practice for frontend+backend in docker-compose

I wanted to ask you guys, what is it good practice if I have docker-compose and inside: nginx ( as a web proxy ) 2 little backend services 1 frontend 1 keycloak for now its for low traffic needs, so 1 ...
0
votes
1answer
25 views

hello world with flask and redis using docker networking

The sample from Docker, a "hello world" with redis and flask, seems to build fine, but, as an exercise can it be broken into two components? The redis service uses a public Redis image ...
1
vote
1answer
47 views

docker-compose up: Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use

specific error: ERROR: for traefik Cannot start service traefik: driver failed programming external connectivity on endpoint frappe_docker_traefik_1 (...
0
votes
1answer
25 views

how to push an image to docker hub?

How do I push this image to docker hub? root $ root $ docker images helloworld_web REPOSITORY TAG IMAGE ID CREATED SIZE helloworld_web latest ...
0
votes
2answers
35 views

Dockerized node.js and bind mount permission problem

I have an interesting problem with node, docker-compose and local development using bind mounts. I have a bind mount volume, called www-public, owned by my host node user (I created a node user and ...
2
votes
1answer
53 views

How to Connect Docker Containers?

In "What is a container?" the docker docs show the following nifty image: For my scenario I have only App A and App B; let's designate them Alice and Bob. How do Alice and Bob communicate, ...
1
vote
0answers
20 views

How to organize frontend infrastructure with dockerized MERN

Can you please tell me, how do I organize my frontend infrastructure for MERN stack dockerized app? For example, I will need a container for MongoDB, Node separately, organized with docker-compose, ...
0
votes
0answers
52 views

docker-compose to populate MariaDB/MySQL Database from mysqldump from GH repo referencing docker-entrypoint-initdb.d path on build

I'm dabbling with creating an application that can be built from a single docker-compose.yml file "on the fly" in any Docker / docker-compose enabled machine (most likely for QA, UAT or ...
0
votes
1answer
74 views

Docker-compose containers can't connect to each other

According to the Docker Compose Docs: Networking: By default Compose sets up a single network for your app. Each container for a service joins the default network and is both reachable by other ...
2
votes
1answer
30 views

How do I convert “\n” to linebreaks in my docker logs?

I am using docker-compose up to start a web server in linux but am finding that the stdout is printing "\n" characters instead of creating new lines. This makes stack traces difficult to ...
1
vote
0answers
45 views

What is the purpose of running PHP-FPM in its own container instead in the same container as apache2/nginx?

I'm fairly new to Docker so excuse any obvious ignorance or misunderstandings. That said, I've been coding and configuring web applications for a long time now. I have recently been dabbling with some ...
0
votes
1answer
42 views

docker run vs docker-compose - different results?

I have just started exploring Docker and am having trouble with docker commit/-compose. I have copied a file into /root/.guacamole/lib (in the container) and then created an image using docker commit. ...
0
votes
1answer
20 views

Include curl commands in a PostgreSQL Docker environment

Using COPY table FROM PROGRAM 'curl "www.example.com/data.csv"'; I am able to copy a CSV directly from the web into a psql table. However, when I am running the same command from inside a ...
0
votes
1answer
46 views

Is it possible to install bitbucket container on Centos?

I'm trying to run the below composefile on centos7: version: "3.3" services: bitbucket: image: atlassian/bitbucket:latest ports: - 7990:7990 - 7999:7999 networks: ...
1
vote
1answer
330 views

docker-compose healthcheck for rabbitMQ

I'm trying to run rabbitMQ using docker-compose, but the service is always starting or unhealthy. rabbit is running fine, so I suspect there is something wrong with my health check. Running the ...
2
votes
1answer
48 views

How to prune all but two most recent docker images?

I'm building images on a small server and spinning them up with docker-compose. When it's disk gets full I run docker prune -a so all the stopped containers, dangling image are cleaned out. But I'd ...
1
vote
1answer
34 views

GitLab keeps loading and finally fails when deploying a dockerized node.js app

GitLab Job Log [0KRunning with gitlab-runner 13.2.0-rc2 (45f2b4ec) [0;m[0K on docker-auto-scale fa6cab46 [0;msection_start:1595233272:prepare_executor [0K[0K[36;1mPreparing the "docker+machine&...
0
votes
2answers
60 views

Jenkins - docker login doesn't seem to persist: docker pull won't work but docker-compose can pull without problems

I am setting up a new Jenkins as our old one is based on a deprecated base image. Dockerfile is: FROM jenkins/jenkins:lts-centos7 USER root RUN yum -y install docker \ && yum clean all ...
4
votes
1answer
83 views

How not expose my backend

I'm studying Docker and how to properly publish my containers coding a very simple web application. It has only two containers, backend and frontend. I've published the source code here: https://...
1
vote
3answers
64 views

Trick a docker containers DNS to resolve a different url

I am not sure I know the terminology to describe this correctly, my apologies. But for a contrived example. Say I have a docker container that runs code that accesses "google.com". But I want all ...
1
vote
0answers
41 views

Are there turn-key development webapp containers for evaluation?

In short: I want a ready-made webapp framework with a web server and a database in a container, such that I can edit files on my local drive and view the results through a browser pointed at the ...
2
votes
1answer
55 views

Docker calls to detect app crashing inside it

Is there a way to know if an app has crashed inside docker using maybe bash script or API call from host container, am implementing CI/CD using Jenkins and will be deploying the built app via ssh to ...
2
votes
1answer
45 views

Jenkins Docker Behind Reverse Proxy Adds “:80” to the URL

The Jenkins container redirects to URL:80, which is causing an error. When I remove the :80, everything is working as it should. I have tried the proxy with a simple web app and there were no issues. ...
2
votes
0answers
17 views

How can I allow admins to run Django Admin CLI commands against a Django application deployed live as part of a Docker Swarm cluster?

Specifically, I want them to run the following: https://django-q.readthedocs.io/en/latest/monitor.html I am looking to write a minimal wrapper-script which would simply allow them to run a single ...
1
vote
0answers
21 views

traefik two hosts in the same config

I'm trying to run Nexus in swarm with traefik, nexus has a admin interface that runs on port 8081 and also has a nexus docker registry repository running on port 9615. My goal is access registry ...
1
vote
1answer
53 views

Failure to build with docker-compose: Invalid signal: SIGQUIT

PS D:\>docker-compose up Building app Step 1/7 : FROM php:7.4-fpm-alpine —> 5ae58b49885c Step 2/7 : RUN apk add --no-cache autoconf curl dpkg-dev dpkg freetype-dev file g++ gcc giticu-dev jpeg-...
4
votes
2answers
394 views

Stress testing for docker container

I want my container to die under high pressure to check monitoring and alerting as well as compose autorestarts. What is best way to simulate heavy load within docker container. I've tried so far ...
0
votes
0answers
30 views

How to deploy docker images on a remote Docker daemon without rebuilding the image

I want to deploy docker images that are built on our GitLab CI runner to a server. I would very much like to avoid rebuilding the images on the server, as the build is very time-consuming. I have ...
3
votes
1answer
32 views

Using DevOps pipelines to create distribution bundles of applications

We want to create bundles of our applications in order to distribute to clients etc. An application can have more than one component. Ex: an application can have a spring server and a scheduler so in ...
2
votes
2answers
252 views

Healthcheck: CMD vs CMD-SHELL

It's not clear to me what are the differences between CMD and CMD-SHELL in Docker Compose healthcheck. What are the benefits of using CMD-SHELL compared to CMD? What are the use cases for CMD and CMD-...
1
vote
1answer
36 views

Grant access permission to file when mounting from host

Below is except of my docker-compose.yml file I am trying to mount from host file inside the container, which works i.e. able to mount but then I need to give it permission (my clumsy chown command, ...
1
vote
2answers
204 views

Restart docker container from another container

I'm in a planning phase for a little tool for myself. I have to say that I have close to 0 experience with docker. My setup 1 x Nodejs App in a Container (lets call it App) n x Instances/Containers ...
1
vote
2answers
90 views

docker-compose multiple services in a loop

Trying to optimize definition of multiple services with docker-compose.yml Here is the original, "dumb" variant of the docker-compose.yml: version: '3' services: s1: build: . ports: - "...
2
votes
1answer
110 views

How to automatically update Swarm services when the Docker daemon restarts

I'm using Docker Swarm, and I have condition: always in the restart_policy of my compose file, so my services are started automatically when the system reboots or the Docker daemon is restarted. What ...
2
votes
1answer
53 views

Multiple apps (microservices) and one proxy (nginx) docker-compose configuration/architecture

Having the following architecture: Microservice 1 + DB (microservice1/docker-compose.yml) Microservice 2 + DB (microservice2/docker-compose.yml) Proxy (proxy/docker-compose.yml) Which of the ...
2
votes
1answer
47 views

Workflow with docker in the development environment

I have a couple of questions related to the usage of Docker in a development environment. I am going to propose three different scenarios of how I think Docker could be used in a development ...
0
votes
1answer
147 views

error while loading shared libraries: libtinfo.so.6 : two behaviors for same docker image

I am developing an Erlang-OTP application, for that I use a docker image. docker-compose.yml: FROM centos LABEL Name=myimage Version=2.0.0 RUN set -e \ && yum -y install \ autoconf ...
1
vote
1answer
21 views

Auto-managed docker-compose volume not shared among containers

I have a bit of hard time understanding the way docker-compose handles auto-managed volumes. Here is an example docker-compose.yml version: '3.7' services: one: image: alpine command: sh -c ...
1
vote
1answer
26 views

Jenkins file that uses docker-compose gives ambigous error

I'm new to Jenkins and I want to automatize my current workflow a little bit. Right now I push it to the raspberry. Then via SSH I pull the changes, run docker-compose build and docker-compose up ...
1
vote
1answer
128 views

mariadb docker on raspberry

I've tried countless docker images, but all of them have the same behaviour. When I open up a console and try to import my database structure via the mysql/mariadb command. But I always get the same ...
0
votes
1answer
35 views

Let docker containers work with each other

I’m new to docker and I want to dockerize a aleardy existing application. It consists of a react application (I already created a container for that one successfully), a REST-api based on node-...
1
vote
1answer
69 views

How to manage images versions via docker-compose with Ansible

I planned to use docker-compose and a few scripts to manage the deployment of my app on staging and production. My idea was to use one docker-compose.yml with one .env file for each environment. In ...
0
votes
0answers
27 views

Making guard service to run tests on change when using docker

I've setup the following service in my docker-compose.yml file: version: "3.3" services: test: build: . command: bundle exec guard --no-bundler-warning --no-interactions tty: true ...
0
votes
1answer
916 views

Can't make MySQL 5.7 work with Docker Compose, no matter what

I'm configuring a docker compose file, and the first step is to configure the MySQL service (so I can further use in my app service), but no matter what, I cannot enter MySQL within the container, ...
1
vote
2answers
2k views

docker | database connection refused between two containers

I have a mysql database running with the following docker-compose.yml: version: '3.3' services: db: image: mysql:5.7 restart: always environment: ...
1
vote
1answer
112 views

Can one use lando.dev for a production environment?

OpenSource community developed free lando.dev looks great for a local development platform on one's own machine. I'm certainly looking to evaluate it for my own setup. But, given there are benefits ...
0
votes
1answer
15 views

docker-compose run container before other container stop

Can somehow with docker or docker-compose run container B before container A stop? docker-compose support trigger event or something like that? Cheers
1
vote
1answer
33 views

Can I run command from a program thats based on the root host from a containerized application?

I'm in a situation where I have a Django application, Nginx webserver and Postgres database that I want to dockerize, and that's no issue I can do that. But the Django application has code that calls ...
4
votes
1answer
834 views

How to deploy docker-compose to a remote host

I am new to the docker ecosystem and I am trying to figure out a proper deployment infrastructure for a system I am working on. Imagine a following scenario: a system consists of three microservices ...