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

How to create a local network mapping in linux

I'm deploying nextcloud via docker, however the way the configuration is set up, it creates a subnetwork at 10.10.10.0/24 on the system it's running on instead of running it on 127.0.0.1. Then the ...
0
votes
1answer
49 views

Docker: Let containers communicate to each other but don't expose to internet

I was recently shocked to find out that docker writes its own iptables rules and ignores ufw bindings completely. I had blocked all ports using the ufw deny incoming command and then selectively ...
0
votes
0answers
28 views

How to make docker look for a port on another machine?

I have a docker containing AMQP(an open-source message broker). The docker-compose file is : services: mom: image: vromero/activemq-artemis:2.15.0-alpine restart: unless-stopped ports: ...
0
votes
1answer
19 views

Nginx healthcheck does not stop

I have the following healthcheck condition for a nginx container inside my docker-compose.yml file: healthcheck: test: ["CMD", "curl", "-f", "http://front-service:...
1
vote
3answers
35 views

Can I use docker compose to run application container and its dependencies on google cloud or digital ocean, the same as locally?

I have a spring boot application, angular front end app, couchbase, and redis. They are all defined in a docker compose yaml file. I can make the application up and running locally. Is there a way to ...
0
votes
1answer
39 views

docker mariadb access from remote

I created a docker container with docker-compose in my VPS and I want to access it from my local computer but the connection will refuse. also, I allowed the 3306 port in the VPS. my docker-compose....
0
votes
0answers
22 views

How can I enter node commands (like “node -v” or “npm intall xyz --save-dev”) in the running docker container?

I'm new to docker. How can I start a node service via docker-compose, which then accepts npm commands? docker-compose up -d --build <-- I use this command to start I want the npm install to be ...
1
vote
2answers
80 views

Where may I need Docker Compose as Kubernetes won the container orchestration war?

I found Docker Compose just release 1.28 on 2021-1-20 but as Kubernetes won the container orchestration war I am not sure where and why I may still need Docker Compose, under with case Docker Compose ...
0
votes
0answers
14 views

Can I deploy Couchbase docker dependency in GKE?

I have a simple spring boot application which is wrapped into a Docker image along with its dependencies such as "Couchbase". I have pushed the docker image successfully to google cloud ...
1
vote
0answers
75 views

Substitute env_file values with .env values on docker compose

Is it possible to substitute (without the use of external tools like envsubst) values in an environment file used in docker-compose (using env_file) with values on a .env file in the folder? Say I ...
0
votes
1answer
63 views

Isolate service networks with Docker Compose

I have two containerised services, A and B, with which I wish to isolate network communications with docker compose. There is also a shared service C which is not isolated from A or B and is free to ...
0
votes
1answer
24 views

is a secrets-provider-container a good idea?

I am looking for a way to provide secrets to a container running on Google Cloud Run responding to the following criteria: secure centralized & pulled based free simple working with a team, with ...
1
vote
2answers
40 views

Use a volume or copy my artefacts into docker image

I want to dockerize my php application and deploy it in production. Here is my application structure : api | +-- src +-- config +-- vendor +-- tests +-- public I need to embed api/* in my container, ...
0
votes
0answers
28 views

Can't access specific docker container using a mapped port through my host [macos]

I just can't access the project's resource through the mapped port, the weirdest thing is that only this container, the others and with other projects it works fine. It was working pretty well and ...
0
votes
1answer
96 views

Deploy Docker Compose from different repositories

I have 3 separate repositories, which contains API, web app, and Admin projects. All 3 runs on a Digital Ocean docker machine, and I deploy the 3 using docker-compose (I want to keep things simple). ...
0
votes
0answers
7 views

Must the Docker desktop client be running in order for the daemon to be up? (macOS)

I recently upgraded docker to 19.03.13 and my docker desktop client version is 2.5.0.1 (49550). Ever since this upgrade, if the docker desktop client is not running, zsh prompts the following when I ...
0
votes
2answers
278 views

How to serve a custom index.html using the stock nginx docker image?

How do I serve static content from the default nginx docker image? Given: root@mordor:~# root@mordor:~# docker image ls nginx REPOSITORY TAG IMAGE ID CREATED ...
0
votes
1answer
38 views

How to navigate to an index.html with nginx?

This builds and runs without apparent error: root@mordor:/home/nicholas/docker/nginx# root@mordor:/home/nicholas/docker/nginx# docker exec -ti some-nginx bash root@2c912aa5ce5c:/# root@2c912aa5ce5c:/...
0
votes
2answers
74 views

How to copy HTML files to include into nginx?

How do I copy an index.html file into nginx? root@mordor:/home/nicholas/docker/nginx# root@mordor:/home/nicholas/docker/nginx# ll total 12 drwxrwxr-x 2 nicholas nicholas 4096 Nov 13 16:18 ./ drwxrwxr-...
0
votes
1answer
47 views

How to access a fully qualified domain name through “localhost”?

About nine minutes into a tutorial on ERPNext I followed directions as: root@mordor:/home/nicholas/git/frappe_docker# root@mordor:/home/nicholas/git/frappe_docker# cat .env LETSENCRYPT_EMAIL=nicholas@...
0
votes
1answer
44 views

Docker compose scale, what is it good for?

I have a docker-compose with 4 containers deployed in production. I wanted to use docker scale for the nodejs part. (with nginx LB) If the docker-compose scale is done on the host machine, how does it ...
0
votes
0answers
34 views

Docker container with Ubuntu 16.04, Nginx, Nodejs via docker-compose.yml

I am new to Docker Containers. But I am very confused with a few things. My goal is to create docker container with ubuntu 16.04,Nginx and nodejs. From googling and tururials I only found docker-...
1
vote
0answers
11 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
55 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
32 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
719 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
44 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
109 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
66 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
25 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
568 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
397 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
33 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 ...
3
votes
1answer
343 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
133 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
140 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
58 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
2k 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
164 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
85 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
358 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
93 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
291 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
56 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
64 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
21 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
32 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
160 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-...
5
votes
2answers
1k 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 ...