Questions tagged [docker-compose]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Serve files over SSL & Https using a docker container

docker-compose.yaml version: '3' services: #PHP Service app: build: context: . dockerfile: Dockerfile image: digitalocean.com/php container_name: app restart: unless-...
user avatar
  • 182
0 votes
0 answers
19 views

Docker-compose for git-repository with concrete branch

I have a task to build containers from git-repository, using docker-compose. For example: version: '2.1' services: project: image: https://github.com/my_project.git container_name: my_project ...
user avatar
  • 123
0 votes
0 answers
20 views

How to mount a cifs Partition for docker-compose?

I want docker-compose to mount one of the volumes to a mounted CIFS partition. I used the seafile docker-compose file and changed the volumes to ... db: ... volumes: - /mnt/nas_share/...
user avatar
  • 315
0 votes
1 answer
41 views

SystemD JournalD cannot disable child process output

I am running SystemD version 249.7+ on a custom embedded Linux device with Kernel 5.10.50. I am using Podman 4.0.2 with Docker-Compose to run a few containers. The problem I have is that the 'conmon' ...
user avatar
  • 153
0 votes
1 answer
54 views

Install gitlab in one VM with docker-compose having a proxy adding https in another vm

I have a server with several virtual machines and one of those is my Proxy that direct the right domains to the right VM on the right port. I used the standard docker-compose file to create gitlab-ce ...
user avatar
  • 24.6k
1 vote
1 answer
38 views

ZSH macro for docker-compose substitutes - for _

I'm using zsh which I understand is different to bash, but mostly similar. I decided to make a macro for my docker-compose command: dock-comp() { state="$2" if [ "$state" = &...
user avatar
  • 113
0 votes
0 answers
729 views

docker-compose returning ERROR: build path either does not exist, is not accessible, or is not a valid URL. after update

around last week I updated my system (Arch Arm on raspberry pi using pacman -Syu) and after that update every time I try to run docker-compose up -d I get : ERROR: build path /srv/http/revProxy either ...
user avatar
  • 1
2 votes
0 answers
189 views

Debian, docker, macvlan and static IPv6

Problem I am trying to setup a local DNS server (pihole) inside a docker container on my debian 11 server in my home network with a static IPv6, such that I can point all lookups from my router to it. ...
user avatar
  • 21
0 votes
1 answer
192 views

How can cgroup.subtree_control be populated in Docker's private cgroup namespace?

For cgroupv2, by default Docker uses a private namespace for cgroups. This is controlled by the --cgroupns flag for docker run and the default-cgroupns-mode daemon option. I need to create child ...
user avatar
  • 113
0 votes
1 answer
493 views

404 Not Found - Nginx - docker compose

It's a pretty standard docker container/setup index.php is a standard call to phpinfo(); only docker compose fails to serve this file in a browser? Dockerfile FROM php:7.4-fpm # Copy composer.lock ...
user avatar
  • 182
0 votes
1 answer
420 views

docker-compose up doesn't exit when containers stopped

I'm running some services through docker-compose, and launching them with systemd: $ systemctl status nextcloud.service ● nextcloud.service - HomelabOS nextcloud Service Loaded: loaded (/etc/...
user avatar
  • 465
0 votes
1 answer
570 views

E: Unable to locate package postgresql-server-dev-10 in Ubuntu 18.04

I am writing a Django app with postgresql, using Docker. However, for some reason building returns the error "E: Unable to locate package postgresql-server-dev-10 The command '/bin/sh -c apt-get ...
user avatar
1 vote
0 answers
290 views

Environment Variables defined in /etc/environment only show for root, not home user

I'm fairly new to linux and am setting up a server running Ubuntu 20.04 LTS. I've defined a few environment variable in /etc/environment for use in my docker-compose.yml file. I added the variables to ...
user avatar
  • 11
2 votes
1 answer
434 views

FirewallD and docker: block a port from being publicly accessible

I am having some issues trying to restrict access to 2 docker containers I am currently running using Centos8 and Firewalld. First of all, the containers have the following configuration: services: ...
user avatar
5 votes
1 answer
290 views

Cannot stop docker-compose logs -f with CTRL + C any more

docker-compose logs -f is a useful command to view the logs of containers in the background and follow them to see new entries immediately. It seems that with the latest stable V2.1.0 it's not ...
user avatar
  • 279
1 vote
0 answers
142 views

why docker container consume huge CPU load average

I want to discuss about strange behavior on our rhel 7.6 server We installed Kafka exporter with container on the server – kafka-01 machine ( total CPU on machine are 12 ) The following yml file ...
user avatar
  • 10.9k
0 votes
1 answer
120 views

alias for podman docker-compose -H unix:///run/user/$UID/podman/podman.sock up -d

This command runs containers using podman rootless with docker-compose. Is it possible to create an alias for this? docker-compose -H unix:///run/user/$UID/podman/podman.sock up -d
user avatar
0 votes
1 answer
50 views

Nextcloud container can't be accessed

I'm trying to create a nextcloud setup in a debian 10 VM with https and mysql and docker-compose but when I acces https://cloud.example.org my browser says it can't be reached. If I acces the link ...
user avatar
  • 15
0 votes
0 answers
108 views

How to properly configure Nginx proxy in docker-compose.yml

I use Ubuntu with docker and I need to set up my local server with Nextcloud and Openproject. For connection form internet(outside) I use dynamic DNS (ddns.net service). When I use this connection in ...
user avatar
1 vote
1 answer
37 views

how to get fresh clean docker image of my broken image in Ubuntu

Im fighting with my broken installation of Nextcloud in container. My problem is when i tried to use docker system prune -a and after that docker-compose up -d from my yml, same broken image was ...
user avatar
0 votes
0 answers
94 views

Start systemd service if path exists

I have docker running at startup and inside docker some containers that need acces to a rclone mount. The problem is that docker runs before the rclone has mounted the drive and the containers don't ...
user avatar
  • 1
0 votes
1 answer
354 views

Connect to a database running in a docker container via a local mysql client i.e. workbench

I have a mysql database running in a docker container docker ps 6496a209cb30 mysql:5.7.22 "docker-entrypoint.s…" 34 minutes ago Up 34 minutes 0.0.0.0:3317->3306/tcp, :::...
user avatar
  • 182
0 votes
0 answers
23 views

traefik route to suburl

I want to start using traefik as reverse proxy for web-apis which are running on docker too. Basically i just want map an api to root and two others on suburls, as example: container #1 apache --> ...
user avatar
  • 11
0 votes
1 answer
249 views

psycopg2.OperationalError: could not connect to server: No route to host Is the server running on host "db" and accepting TCP/IP connections on port

Following the instructions here was fine on openSUSE Tumbleweed with Docker version 20.10.6-ce, build 8728dd246c3a https://github.com/mirumee/saleor-platform#how-to-run-it But on openSUSE Leap 15.3 ...
user avatar
  • 1,315
0 votes
0 answers
113 views

dnsmasq container on ARM OMV5

Would like to ask for your help with something i'm working on these days. I'm running Openmediavault 5 on an ODROID HC2 (ARM). It uses systemd-resolve. I use docker containers and access everything ...
user avatar
1 vote
1 answer
151 views

Is there a downside for running docker experimental features?

I know that Docker allows enabling experimental features on the daemon side in a rather simple way: Add/update /etc/docker/daemon.json: { "experimental": true } And enabling experimental ...
user avatar
0 votes
0 answers
204 views

Why set -m is not working? Giving me error job control is turned off!

I am trying to execute an entryscript for docker container. I have build this image from php-fpm alpine linux (7.3 version). Once the container is started it should execute some commands in prior, I ...
user avatar
6 votes
1 answer
4k views

Docker container DNS not working with pihole

I'm currently working on a little home project where i host various services on a raspberry pi 4 via docker. While working on this project i now encountered a dns problem which i can't really get my ...
user avatar
1 vote
1 answer
231 views

Can I install Docker package on openSUSE Tumbleweed (32-bit)

Problem There is a 32-bit server with Ubuntu 16.04 LTS on it. According to documentation, I cannot install Docker on a 32-bit Ubuntu: OS requirements To install Docker Engine, you need the 64-bit ...
user avatar
  • 1,315
0 votes
1 answer
133 views

Issues converting docker run command to a docker-compose.yml config

I am trying to set up dhcpd in a docker image for my home network. I have cloned this repository, and had it working fine with my dhcpd.conf To run it, I have to execute this command using docker run: ...
user avatar
  • 125
1 vote
1 answer
471 views

Does Docker normally fail to clean up its iptables rules?

I'm on Alpine Linux 3.13.2, iptables-1.8.6-r0, and docker-20.10.3-r0. I'm trying out Graylog 4 using their sample docker-compose .yml file. I got Graylog running as expected, then did docker-compose .....
user avatar
  • 123
0 votes
2 answers
643 views

Bash-Variable subsitution in Makefile subshell

My Makefile should and does create a file /tmp/file in the docker container using make test: test: (cd subdirectory && docker-compose exec webserver bash -c "\ MYTEXT=hello ...
user avatar
  • 158
1 vote
2 answers
1k views

Starting Docker without starting containers

I'm trying to build a generic system init tool, which will run on all of our systems, which verifies that local Docker images have not been altered. The tool will not know what containers are supposed ...
user avatar
  • 113
1 vote
2 answers
57 views

Virtualization: Virtual Machines or Docker π

I want to clear up some ambiguity in my head. I am running a baremetal server with CentOS7 on a local business network behind NAT. Because the main software on CentOS7 requires PHP 5.4.16 and cannot ...
user avatar
1 vote
1 answer
2k views

Docker-compose as Systemd unit

I have a systemd unit, that uses the command docker-compose to start and stop a given set of containers. It looks like this: [Unit] Description=... [Service] WorkingDirectory=/opt/tsc-docker ...
user avatar
0 votes
1 answer
145 views

Docker-compose v3.5 with pre-excisting network and static IP not working

I am stuck with an docker-compose issue that I can not figure out. I am trying to use a compose file with a pre-excisting network and a static ip, but I keep getting the message that the network does ...
user avatar
  • 1
1 vote
0 answers
2k views

How to map my host's to the container's user in docker-compose using the lebokus/docker-volume-bindfs plugin?

I have a php dev stack setup through Dockerfiles and docker-compose. I mount the source tree and composer vendor folder to the container. My host's local user philipp has id 1000 and my container uses ...
user avatar
  • 13.2k