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
1
vote
1answer
11 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 ...
3
votes
1answer
35 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 ...
1
vote
1answer
18 views

How to develop a docker container for laravel without laradock or docker-compose

I am very new to docker. I want to build a laravel development environment with docker. I already tried laradock but it seemed complicated for me. I was wondering whether it is possible to create a ...
1
vote
1answer
111 views

Internal Server Error while running docker-compose to install Gitlab

I'm installing Gitlab on my server using docker-compose based on Docker Docs. My SSH port is not the default one (22) and I have changed it to something else like 2228. So the YML file became like ...
8
votes
7answers
2k views

Is there one website that contains all relevant DevOps news and gets updated on a daily basis?

I am looking for some DevOps news channel like https://nos.nl/teletekst#101 that shows the headlines of the Dutch news. I am aware of https://tweakers.net/ and github.com, but this does not contain ...
0
votes
0answers
11 views

docker-compose volumes issues with Docker Toolbox on Windows 10

I'm using Docker Toolbox on Windows 10 and have enabled Shared Folders settings with the correct custom paths in VirtualBox where the project is located: I have set up Dockerfile and docker-compose....
0
votes
1answer
26 views

How to create slave jenkins given master jenkins?

Below code snippet, taken from here creates master jenkins that runs in a container: # Create Docker Group with GID # Set default value of 497 if DOCKER_GID set to blank string by Docker Compose RUN ...
2
votes
0answers
52 views

How to programmatically generate docker-compose file? [closed]

I am writing an Ansible playbook to deploy services to a clustered environment. There are 3 types of hosts (Application, Load balancer, database). Services are deployed via docker-compose on each host ...
3
votes
1answer
30 views

Adding default external network in docker-compose

I am trying to learn docker and understanding docker-compose As I was trying out the external network section: networks: default: external: name: my-pre-existing-network I understand ...
2
votes
1answer
20 views

Multiple Microservices in CI environment

hey we have a GitLab stage and inside that we need to start an environment with several containers we pull from a local registry. We use compose and a docker in docker solution for that at the moment....
1
vote
1answer
30 views

How to bring a docker data container to Kubernetes?

I have an application that relies on 4 docker data containers for the data it needs to run some tests. At the moment I have their docker-compose file and their images but I don't have access to the ...
2
votes
1answer
41 views

How to properly manage mupltiple environmental variables with Gitlab CI and Docker Swarm?

In our project we are using Docker and we have multiple services with a pile of environmental variables (mostly credentials to various dbs, mail, samba, 30+ entries in total). It all worked well with ...
0
votes
1answer
138 views

How do I do a dry run with docker-compose?

I want to know what docker-compose is going to do before I do it. Is there a tool or flag which I can use to see what docker-compose would do without actually stopping containers and starting new ...
0
votes
2answers
32 views

Docker: PHP deployment in apache, couldn't acces container URL in local browser; shows blank page [closed]

I'm trying to deploy PHP files in Apache container using Dockerfile, Dockerfile on console shows successfully built and tagged but after running the container, i couldn't access the container IP or ...
1
vote
0answers
68 views

Anonymous “Agents can connect” Jenkins health check url?

I have a situation where I would like to spin up a distributed Jenkins build server with docker-compose (as part of local testing before deploying to OpenShift). Unfortunately the agents spin up, ...
0
votes
1answer
34 views

Continuous integration using bitbucket pipelines failed for OpenEdx

I am trying to set up CI process using bitbucket pipelines for my Openedx site. The script that i am using in my bitbucket-pipelines.yml file is given below. I am trying to just set up the build ...
1
vote
1answer
39 views

Consul cluster does not work as expected when one of server is down

I guess, the main purpose of a cluster is failure tolerance. However, when I start the following consul cluster, in docker, it is not the case and I don't understand why. services: # docker ...
3
votes
2answers
763 views

Docker compose volume syntax valid for Windows and Linux

We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment. The local ...
1
vote
1answer
27 views

Why does Docker define invalid IP address of service?

I have web-app with PHP and database in docker-compose file: version: '2' networks: default: driver: bridge services: yii2-app: build: context: ./web ports: - "80:80" ...
5
votes
2answers
1k views

Why does chown not work in RUN command in Docker?

I have the following docker-compose file: version: '2' networks: default: driver: bridge services: yii2-app: build: context: . dockerfile: ./Dockerfile-app ports: ...
2
votes
3answers
75 views

How to automatically update Docker containers in development?

What is the best way to use Docker in development so that a container is automatically updated each time you make a change to the codebase?
1
vote
0answers
15 views

Docker Compose for Multicontainer WordPress [closed]

I'm trying to create a simple project template for WordPress sites, which includes a global nginx proxy and n WP sites, each with their own mySQL server. I'd like to be able to git clone this template,...
4
votes
1answer
1k views

Volumes Not Mounting with Docker-Compose

I'm trying to run a SQL Server Database in a container and have been unable to mount a volume using docker-compose. I am able to persist data using docker run, however. SETUP docker volume ls ...
1
vote
1answer
28 views

Ruby and Rest service in Docker

I am new to DevOps on the Ruby stack. I have Ruby on Rails application. It uses several Rest based service. Each of the services is deployed with Docker. There are no DevOps efforts now. We use Gitlab ...
3
votes
1answer
22 views

Store named volumes on another drive

I'm really familiar with Docker on Linux but my company's IT department uses Windows. They're interested in converting VM-based services over to Docker so I'm trying to get them set up with a good ...
0
votes
1answer
48 views

Why Docker cant launch container?

I have docker-compose file with one image (httpd) and one volume that look into ./ folder (It contains only one index.html static file). When I start my computer I launch this image with docker-...
0
votes
1answer
46 views

How to keep previous containers on docker-compose up?

I am running a CI/CD pipeline that builds my service and ends with docker-compose up -d which brings up the service with a new docker image tag (my-service:tag1). But when I look at docker ps -a the ...
1
vote
1answer
2k views

How do I make NFS volumes reliable in Docker?

I host various docker containers on my Ubuntu 18 machine. A few of them require storing their data on my Synology NAS. At first, I was using the host machine's /etc/fstab to control NFS mounts, which ...
1
vote
1answer
40 views

i have questions about docker-compose

postgres: image: healthcheck/postgres:alpine environment: POSTGRES_USER: postgres What is the default user of postgresql? How does hardcoding the postgres user improve security? What special ...
1
vote
1answer
172 views

Is there an equivilent of a Kubernetes ingress for Docker Compose?

I'm more of a software developer than a networking/ops person to give you some context. I'm currently creating an application that is a standard containerised microservices architecture, where my ...
1
vote
1answer
92 views

How to deploy my Express/React app to server with docker-compose and Dockerfiles

Hi, I'm trying to deploy my app to production with Docker, but I struggle a lot. Here is the structure from the root folder : a server folder : runs with Express on port 4000 a web folder : a ...
1
vote
2answers
374 views

Docker - Mount a volume from a container to an other (equivalent volumes_from) in docker-compose 3

I've two containers : nginx & angular. The angular container contains the code and is automatically pulled from the registry when there is a new version (with watchtower). I set up a Shared ...
1
vote
1answer
80 views

How should I deploy my projects using Docker, Git and VPS?

I have a VPS and am able to connect trough ssh using Terminal. Every project I have are dockerized and have github repositories. Since I am new to deployments so far my deployment process is manual: $...
2
votes
1answer
117 views

How do you hide sensitive information held in variables on a docker-compose file

I am fairly new to DevOps. I have managed to build myself a CI/DI pipeline for my open source project. As soon as I check-in some code into GitHub, Travis CI takes over, it builds a fresh docker ...
2
votes
1answer
179 views

Best practice for Jenkins docker to deploy to other container

I'm currently experimenting with docker with the potential of using it in future professional projects and am a bit confused about best practices. In my experimental setup I have three docker ...
1
vote
1answer
52 views

Docker Hub to VPS

Note: I am a .NET Developer that is dabbling in DevOps. I want to learn. Current Situation: I have my .NET Core project dockerised. It sits on GitHub and is Open Source. Using Travis CI; as soon as ...
2
votes
1answer
762 views

running a phpUnit test within a docker container

i want to run a specific version of phpUnit WITHIN a docker container. This container will use a specific version of php. i.e php:5.6-apache Its a lareval application. i have install phpunit via ...
0
votes
1answer
318 views

Nginx routing setup within Docker container, request timing out with 502

I have a React application where a user can enter in some number, there is an algorithm that runs some calculation and spits out a result, but before we get there, Nginx is looking at the request and ...
5
votes
4answers
195 views

How do you monitor status of multiple docker containers?

My home server has about 15 distinct services running, each represented by a Docker container. Depending on how the developers implemented the Dockerfile, some services have health checks, but most do ...
2
votes
3answers
648 views

docker-compose.yml - make network name configurable via environment variable

I have a docker compose file with env variables for stage specific configurations. As long as env variables are used in values in docker-compose.yml everything is fine, but the problem is with the ...
4
votes
1answer
1k views

When would I use docker-compose's “--service-ports” flag?

Docker-compose's run reference includes the "--service-ports" flag. --service-ports Run command with the service's ports enabled and mapped to the host. Source: https://...
0
votes
2answers
31 views

Any suggestion for a provider to deploy a first Dockerized application?

To conclude my Docker course, I would like to make my students deploying an app on some cloud provider. A priori, the deployment will be on a single host using docker-compose (i.e., no swarm, no ...
2
votes
1answer
375 views

How to create replicas in docker-compose when `scale` is deprecated?

According to docker-compose issue #5586, scale is deprecated. The replacement is deploy.replicas but that latter is not handled by docker-compose, only by docker stack implying you have to run Docker ...
1
vote
2answers
100 views

Coding conventions for docker-compose files?

Is there some globally admitted coding conventions for docker-compose files? Below is a sample docker-compose.yml from a small project we have here: version: 3 networks: net: driver: 'bridge' ...
3
votes
1answer
76 views

Has `docker-compose` to be phased out in favor of `docker stack`?

According to the August 2017 article the core functionalities of docker-compose were integrated into the new docker stack command. At the end of the article, the author also assumes docker-compose ...
1
vote
1answer
1k views

Docker stack deploy doesn't pull images

I'm launching through Ansible (just SSH basically) a docker stack deploy, the issue is also true when launching directly from a manager: docker stack deploy --prune --with-registry-auth -c /docker/...
3
votes
1answer
79 views

How to convert a docker-compose file to kubernetes file(s)?

Is there any easy way to convert a docker-compose.yml file to Kubernetes file(s)?
2
votes
1answer
173 views

How to add LinkedIn's Burrow to a Docker Compose?

It appears LinkedIn doesn't have an official Burrow docker image on Docker Hub, but there are others who have forked it. However, I can't find any examples of how to add any of them to a docker ...
2
votes
2answers
198 views

OOM when running Bitbucket pipelines

as one (sometimes failing) step of our pipeline we setup environment via installation of docker which runs 3 containers through own docker-compose. Unfortunately we could not figure out how to ...
2
votes
1answer
31 views

How to create a preemptable docker container?

Is there any way by which I can set a lifetime for a container after that much of time it should be stopped automatically and only awake when someone send a request. I wanted something like ...