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
10 views

How to load several environment variables without giving env and args only giving settings.env file in the Dockerfile?

NOTE: Here we don't use docker run command and docker-compose.yml only using dockerfile and settings.env how can we can achieve this requirement.
0
votes
1answer
13 views

Docker Swarm set which service goes to which machine

Docker Swarm set which service goes to which machine. Is there any way to set which service or service replicas goes to which worker machine ?
0
votes
1answer
30 views

CICD with dockerized web app

I am having troubles understanding the following DevOps concept. I have developed a dockerized web app using docker-compose. It is in my local and I can upload it to any cloud service I want and it ...
1
vote
0answers
30 views

Pipeline could not pull repo in GitLab CI/CD

I have a the repo with test CI pipeline, which is the following: # .gitlab-ci.yml image: name: gcc build: stage: build script: - echo 123 And it fails: Running with gitlab-runner 14.3.1 (...
0
votes
0answers
5 views

pg_dump from Celery container differs from pg_dump everywhere else in other container

I can't understand where pg_dump version is coming from. I forced everywhere postrgresql-client-13 to be installed. /usr/bin/pg_dump --version Celery Beat and Celery pg_dump (PostgreSQL) 11.12 (...
0
votes
0answers
32 views

Docker and Docker-Compose: Problem with InvalidVersion and API Version

My issue is that a docker-compose project (builds three docker images) works on a server A (ubuntu 18.04) but not on server B (ubuntu 14.04). The error I get on server B is the following: Traceback (...
3
votes
1answer
95 views

How to create network connection into remote docker stack?

I am struggling to set this up correctly. I am trying to run an app with docker stack deploy on a remote machine. The following app works, when I deploy it with docker swarm deploy on my windows ...
0
votes
0answers
71 views

Docker volume type cifs works OK with docker-compose write not allowed on swarm

I have a docker-compose.yml with this volume inside: volumes: xxx_media: driver: local driver_opts: type: cifs device: //10.1.1.3\Company$$\xxx o: "user=service.it@xxx....
0
votes
0answers
21 views

How to build an automated pipeline to AWS for a Django app in Github with more than one Dockerfile

I am completely new to DevOps. I have coded a few Django apps and I have been able to put them in production using Docker with nginx and uwsgi. The structure is -app/ --manage.py -proxy/ --Dockerfile -...
1
vote
1answer
46 views

Unable to use AWS ECS docker context in bitbucket pipelines deployment step

I'm trying to add a deployment step to bitbucket pipelines that works successfully when I simulate locally but fails when executing the steps in bitbucket. I have created a simple docker image that ...
1
vote
1answer
91 views

How to communicate between AWS ECS containers

Problem How do ECS containers communicate between each others? Situation I use docker compose ecs integration. In AWS docker context, docker compose up did a deploy correctly. But reverse proxy doesn'...
0
votes
0answers
10 views

How to route traffic from vps to kubernetes load balancer

I'm moving my project from docker compose setup to kubernetes setup. I've read a lot and view some tutorials but I'm stuck when it comes to sharing load balancer/ingress to the outside world. I always ...
0
votes
0answers
30 views

pm2 to start docker-compose

There is plenty of documentation and dicussion regarding running pm2 inside a Docker container. And general consensus seems that you use K8 or docker-compose to handle health checking/auto-restarts/...
1
vote
0answers
21 views

OS level Nginx that proxies to Dockers vs Dockers that each contain their own Nginx

Given a traditional Linux server ie- Ubuntu on a VPS and a commercial app that requires a handful of Docker containers each of which need to communciate to one another ... with one of those containers ...
1
vote
1answer
44 views

Using access tokens on Dockerfile to clone repository: RUN command error

In a Dockerfile, I'm trying to clone several Gitlab repositories that are specified in a file, one per line, using an access token passed as an environment variable set in docker-compose.yml: COPY my-...
0
votes
1answer
876 views

Initial file not found on docker-entrypoint

I want to run a container with docker-compose. My dockerfile is installing some stuff and at the end it looks like this: FROM adoptopenjdk/openjdk16 ... COPY ./myfiles /mydockerfiles ...
2
votes
2answers
86 views

Log/Data rotation in Docker Container

My question is more on the concept or best practices to follow. I have two docker containers running InfluxDB and Grafana (monitoring applications). I have mounted external volume to each. now, the ...
0
votes
1answer
282 views

Docker compose up, Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in use

I'm trying to a gitlab/gitlab-ce image up and running with docker-compose on macOS (Big Sur) (docker-compose up -d). I'm using docker-machine with the virtualBox driver. However, when starting the ...
0
votes
1answer
51 views

How to change ownership of folder inside the container after build?

I have this service in my docker-compose.yml php-fpm: container_name: php_app restart: always build: context: . dockerfile: ./docker/php-fpm/Dockerfile volumes: - ./src:/var/www/html that take ...
0
votes
1answer
74 views

yarn server with docker-compose

So I am trying to start up an server that has: a mongodb container a backend container a client container Both server containers require me to run yarn start at the end. However, when I run this in ...
0
votes
1answer
54 views

Continuous Deployment with jenkins

I am a beginner in DevOps. I created a continuous integration cycle using jenkins(docker image) and bitbucket. I used a simple spring boot hello-world project and after CI i got an executable Jar. I ...
1
vote
1answer
66 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
2answers
100 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
1answer
29 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
54 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
255 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....
1
vote
2answers
94 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 ...
1
vote
0answers
143 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
152 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
26 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
122 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
1answer
168 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). ...
1
vote
2answers
2k 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
59 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
140 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-...
1
vote
1answer
138 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
90 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 ...
1
vote
0answers
12 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
1answer
53 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
1k 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
55 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
148 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
73 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
32 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
1answer
935 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
43 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
1k 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
346 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
433 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
74 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: ...