Questions tagged [docker-compose]
Compose is a tool for defining and running multi-container Docker applications.
209
questions with no upvoted or accepted answers
4
votes
0answers
885 views
Podman: Method to convert docker-compose files to systemd unit files
I'm migrating away from docker towards podman (not going straight for kubernetes, as that would definitely be overkill at this point).
Now, many an elegant configuration can be had as docker-compose ...
3
votes
0answers
382 views
Should I use systemd or docker-compose to keep Docker containers running on my systems?
We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines.
Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're ...
3
votes
0answers
1k views
Relative path of build context in docker-compose configuration is not resolved relative to the compose yml file location
I have a docker-compose project with container configurations in subdirectories like
.
├── a.yml
└── b
└── b.yml
a.yml is
version: "2.2"
services:
a:
build:
context: ./
b.yml is
...
3
votes
0answers
226 views
The strangest docker fault I've ever seen
I am using Docker with docker-mailserver on one of my servers. Very strange trouble appeared after migrating some services from legacy Debian Jessie server to Ubuntu 16.04 LTS server. Parameters of ...
2
votes
0answers
39 views
Deploying docker instances based on user input
I have a use case where I would like to automatically deploy some services (say 2-3) whenever a user signs up. The services are available as pre-built docker images that are the same for all users, ...
2
votes
0answers
427 views
Unable to interact with docker service
I'm having trouble with a docker container of mine, specifically, the laradock/laravel-horizon container, I'm not sure if that's relevant or not.
The issue I'm having is that I am unable to solve my ...
2
votes
1answer
480 views
How to do docker-compose down without the config file that made the up?
When you do docker-compose up, it's based on a docker-compose.yml file.
This usually brings up a network, builds and runs multiple services. If you do the up with the -d flag, the docker-compose ...
2
votes
0answers
637 views
docker-compose containers do not resolv hosts /etc/hosts entries
On my host machine (arch linux) I have a somewhat long list of entries in the /etc/hosts file resolving to remote machines (that are not under my control). The Docker containers of a development ...
2
votes
0answers
74 views
Docker compose project in Azure with multiple yaml files?
I am currently constructing a docker project that is to be quite generic in question, to work with several of our sites. The way I have solved that is to have multiple docker-compose yaml files, one ...
2
votes
0answers
825 views
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
My environment:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
# uname -a
Linux X.Y.Z 3.10.0-957.12.1.el7.x86_64 #1 SMP Wed Mar 20 11:34:37 UTC 2019 x86_64 x86_64 ...
2
votes
0answers
20 views
What is the difference between creating a volume in docker-compose and in docker file?
I discovered docker-compose a few days ago.
I saw that it has a neat way to create volumes for serveral containers without any problems.
However, as far as I know it is possible to do the same in the ...
2
votes
0answers
2k views
How do I do a correct reverse-proxy to a Redis instance?
I'm running an application called Ambar on a (Samba)fileserver. I want users in my network to be able to search for documents freely, and securely. Since Ambar runs on HTTP, and the server already has ...
2
votes
0answers
2k views
Serve Django Media Files via Nginx (Django/React/Nginx/Docker-Compose)
Context
I have a single page web app using the following stack:
React for the frontend
Django for the backend
Nginx for the webserver
The web application is dockerized using docker-compose. My ...
2
votes
0answers
639 views
Not able to reach container running in a localhost docker swarm cluster
If that's interesting: OS: WIN10 (cygwin), code written in Java. I am using hyperv VMs as stated in this guide: this
I'd expect to reach the service in front of the container, which is running on ...
2
votes
0answers
2k views
Using Environment variable in proxy_pass nginx
I have nginx container where I want to forward an api call to another server.
I want to pass in environment variables from Docker Compose to be able to change sites, without rebuilding the Docker ...
2
votes
0answers
435 views
docker-compose fails to spin up a gerrit container due to permission errors
I'm trying to spin up a gerrit workspace on ubuntu following the details provided in the following link.
https://gerrit.googlesource.com/docker-gerrit
However, this keeps failing only in when trying ...
2
votes
0answers
567 views
Managing multiple websites with Docker-compose
On SO there was a good answer https://stackoverflow.com/questions/47849096/running-multiple-websites-docker-compose, but it works only when you have structure like
└───project
│ docker-compose....
2
votes
0answers
2k views
Is there a way to flush docker's embedded dns cache?
I'm working in an environment where sometimes the DNS server flakes out and tells you it can't resolve a host (eg. lookup of "github.com" fails). It's transient, and usually recovers fairly quickly. ...
2
votes
0answers
448 views
Docker for Windows Windows: Keep linux container running after logout
I've installed Docker for Windows on Windows Server 2016 using Hyper-V as Hypervisor for linux containers. The docker service starts automatically when I login to my account.
I start my docker ...
2
votes
0answers
94 views
Disallow containers to access host's network
In a simple docker-compose structure like this
version: "2"
services:
app:
image: myapp
db:
image: mydb
a bridge network is automatically created, which allows:
app and db to see each ...
2
votes
0answers
241 views
Docker Swarm Mode network and load balancing doesn't work for my second service
My setup
Two nodes (2GB RAM, 2 vCPU) running docker engine (v17.06.1-ce) -- one swarm and one worker. Internal network bandwidth: 10Gbps. All files and databases are located outside this docker ...
2
votes
0answers
341 views
Access environment variables from another container
How can I access MONGODB url from another container..
My containers are..
Database (Mongo image)
Api (Private container with node api)
UI (Private container with nginx)
In API app I need to use ...
2
votes
0answers
724 views
How to redirect request from one container to another when .php files are called
I am working in a LAMP stack using Docker and Docker-Compose and I am stuck since I am not able to execute PHP files meaning anytime I try http://localhost/index.php I end with the following 403 ...
2
votes
1answer
785 views
docker container not writing to mounted volume on host
I am having issue writing to the mounted volume on host filesystem from docker container
Is there some special thing i have to do when building the container to make the container write data to the ...
2
votes
1answer
4k views
Getting “Can't create/write to file '/var/lib/mysql/is_writable'” using docker (inside vagrant on OS X)
I am trying to use docker-compose/docker inside a vagrant machine hosted on OS X. Running 'docker-compose up' always fails with
mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (...
2
votes
1answer
1k views
Docker mount command (mount failed: Unknown error -1)
I'm trying to migrate my existing application to Docker, it mounts an image but is getting an error:
mount failed: Unknown error -1
These are the steps:
Create an empty floppy image of 1.44 MB as ...
1
vote
0answers
36 views
Environment variables inside of an environment file
Background
I was deploying my docker environment to a production server when I've noticed that the application would not work. For some reason the environment variables were not set correctly inside ...
1
vote
0answers
171 views
nginx HTTPS passthrough for multiple domains [With wildcard aletrnate_names in certificate]
I have the following question:
I have a couple of HTTPS services that are running inside docker containers. I have an nginx container also set up so that it redirects URL to the relevant containers. ...
1
vote
0answers
69 views
mDNS service is discovered but not reachable
I've some problems connecting to services on my raspberry pi.
I desire the following:
1x Raspberry Pi running multiple services (like openhab, mosquitto, nagios, etc.). Each of these services is ...
1
vote
0answers
41 views
AWS Fargate: The OPENCART_DATABASE_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes
I am trying to run Open cart on AWS Fargate, i am using native bitnami release, following is my docker-compose.yml
version: '2'
services:
mariadb:
image: 'docker.io/bitnami/mariadb:10.3-debian-...
1
vote
1answer
192 views
Traefik error: invalid certificate, missing extension
I'm trying to setup Traefik for https, in docker. But I get the error:
traefik | time="2020-07-10T11:33:46Z" level=error msg="Unable to obtain ACME certificate for domains "my....
1
vote
0answers
62 views
Differences of Docker vs. Docker-Compose attaching to user-defined bridged network
Environment
I'm trying to setup
User-Machine: dockerized VNC-connected containers (in Docker network vm_network) for different purposes
These should be connected by the user using
Guac: Apache ...
1
vote
0answers
69 views
Keycloak takes a long time to wake up if unused during a day or more
I installed Keycloak with a docker compose, behind an NGINX reverse proxy. Keycloack is only installed now for testing.
When I stop using it for a days or more, next time I have a "Request Time-out" ...
1
vote
1answer
72 views
Docker Compose file — limit restart count
In my docker-compose.yaml I am saying to alway restart app service
app:
build: .
image: app:latest
ports:
- 3000:3000
restart: always
volumes:
- "./:/usr/src/app"
...
1
vote
1answer
331 views
Backup of dockerized Wordpress
I want to backup a dockerized wordpress.
Ordinarily I'd restore a docker app from backups like this:
spin up a new database container
restore a sql dump to the database container
spin up a new app ...
1
vote
0answers
182 views
Nginx reverse proxy without changing web application
I'm currently running a docker-compose application with an nginx in front, accessing 3 separate docker applications (flask api, angular, jupyter notebook).
I have it currently working where localhost/...
1
vote
0answers
541 views
Multiple Docker-Compose-Files for reverse proxy and services
I have created two docker-compose files, the first one creates an nginx-proxy and a letsencrypt-nginx-proxy-companion. The other yaml-file creates a nextcloud instance (with mariadb). The first two ...
1
vote
0answers
289 views
Docker volume mount subdirs without overwriting entire target
I have the following scenario.
I have a backup extract, this exists in a local folder ./app_backup. Example directory structure inside this:
./app_backup/plugins/plugin1
./app_backup/plugins/...
1
vote
0answers
200 views
Docker-compose exposing port when reusing network
I am trying to get a set of containers to work together with a OpenVPN-client.
I used this as a template and build my own container (on a Raspberry Pi, so i cannot use the prebuilt image right away).
...
1
vote
1answer
412 views
Errors while restoring mariadb/mysql dump in docker
I'm running mariadb in a docker container. I want to backup and restore using a sql dump.
I created the database for use with wordpress, and created just one test page. I installed phpmyadmin to the ...
1
vote
0answers
98 views
Overlay network in docker swarm not working
This is my setup: https://github.com/czpo/docker-reverse-proxy
So there is a simple nginx/php stack called "site1" on the worker, and when I put a reverse proxy on the worker node it will load that ...
1
vote
1answer
262 views
trying get a working version of ELK (elastic search + kabana) with docker-compose
So I've spent the last 6 hrs doing this and successfully got it to work with 2 separate docker containers (I just do a docker pull kibana:7.3.2 and docker pull elasticsearch:7.3.2). The tag seems to ...
1
vote
0answers
181 views
Docker Compose access specific internet domains/ports without “--net=host”
By default, none of my docker-compose containers have access to the internet. We can expose ports to the host, but not from the internet. Any solutions on the web point me towards using network: host ...
1
vote
0answers
654 views
Nginx timeout error using Docker and nextcloud-fpm
I have a docker-compose file using nginx, nextcloud-fpm, mariadb, and redis (see below). The mariaDB and Redis connections appear fine, however I can't get any kind of web interface (accessing via ...
1
vote
0answers
34 views
docker-compose detaches from containers after going up
I'm experiencing a very weird issue inside the terminal.
I am using docker-compose to start my microservices, and when I run docker-compose up I see all the logs that containers are producing ...
1
vote
3answers
3k views
Nginx on Docker cannot access bind mount
Summary:
I'm trying to set up an Nginx container as part of a Docker stack. I want to use a bind mount to make a folder on my computer available to the container as /data/www, and use that as the ...
1
vote
1answer
1k views
Docker-compose with VPN and DNS not resolving properly
I made a deal with my son where in, if he built a fully-working, 3 way traffic light in minecraft, I would host him his own minecraft server so he and his friends could play anytime. He upheld his end ...
1
vote
1answer
368 views
gitlab-runner process in container can't find gitlab container when using docker-compose
Update:
I did not resolve my problem but I know why it does not work. If you are using docker executor, when you launch a job, gitlab-runner binary will start a special container. This container is ...
1
vote
1answer
580 views
container cannnot connect to service from another container
I have the following containers running:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
1
vote
1answer
9k views
Docker Compose and multiple subnets
I'm struggling with Docker Compose (version 2 or 3).
I'm trying to add multiple subnets, so various services can reach each other, but get assigned IPv4 addresses from different subnets.
This is my ...