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
9 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 ...
0
votes
1answer
10 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 ...
0
votes
0answers
16 views

docker-compose: two services defined in separate yml-files. One service makes a call to localhost for the other

I have a setup with several services and one coordinator which can call the other services. At least that is what I want to do. All the services are reachable externally via postman. I want them to be ...
0
votes
1answer
16 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
0answers
10 views

Interconnect react and node container

I have a react-frontend and a REST-api, acting as database-gateway. During developement it was easy for me to connect these simply by putting "proxy":"restapi.url" into my package.json file. Then all ...
0
votes
1answer
25 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-...
0
votes
0answers
4 views

tomav/docker-mailserver doesn't work with postgres-container in project

I have several services in my docker-compose project. It works just fine, until I tried to add a mailserver-container. Then the project couldn't be brought up. To be honest, I need to addmit I'm ...
0
votes
1answer
22 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
12 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
30 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
38 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: ...
0
votes
0answers
14 views

Help getting new apps installed with docker reverseproxied Traefik

I had the worst time ever getting networking working on my domain and with letsencrypt/nginix or letsencrypt/traefik. I have finally set it up. Traefik seemed to make sense for me to install, as it ...
0
votes
1answer
18 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
13 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
26 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
59 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
20 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
247 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
17 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
28 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
74 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
40 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
21 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
47 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
229 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
34 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
91 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
38 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
52 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
3answers
1k 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
29 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
77 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
29 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
49 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
51 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
193 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
114 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
454 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
84 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
153 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
241 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
53 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 ...