Questions tagged [docker-compose]
Compose is a tool for defining and running multi-container Docker applications.
613
questions
0
votes
0
answers
11
views
Cant build php7.0-fpm dockerfile The repository Release file
docker build -t php7-fpm-custom .
build on ubuntu 22.04 minimal
Reading package lists...
W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release ...
0
votes
0
answers
34
views
How to configure a docker compose file so that it sees both user-defined networks and the default ones?
Summary of the problem
I use a reverse proxy (caddy) in order to serve my application (helloworld) though a specific docker network (srv) that connects my containers and the reverse proxy. It is ...
1
vote
2
answers
193
views
nslookup returns SERVFAIL error from local DNS
I'm configuring Nginx and local DNS settings on Ubuntu 22.04.
The DNS server running on Docker has an error. When resolving a domain name, the Docker DNS server returns, SERVFAIL.
nslookup ns.main....
1
vote
1
answer
71
views
Make Docker Compose available to non-root user?
I've created a non-root user (userB) on my Ubuntu Linux 22.04.4 server for an application and added them as a member of the docker group. When I try checking the Docker Compose version as this user, I ...
0
votes
0
answers
139
views
How to access a docker-compose container running with Minikube?
I used to setup and run some containers in my local machine with docker-compose with the Docker daemon running via Docker Desktop.
I uninstalled Docker Desktop (due to licensing issues) and installed ...
0
votes
2
answers
47
views
Why Docker doesn't throw error if I delete my SQLite database using bind volume mount?
So I have a project using Next.js + SQLite + Litestream (Database Backups on Cloudflare R2) + Docker & I tried to perform database delete on /data folder on container (./data/ on disk) to see if ...
0
votes
1
answer
91
views
Nginx container running inside docker on custom network allow / deny not working
I have a docker compose file with this in:
nginx-proxy:
image: nginx:1.18.0-alpine
restart: always
ports:
- "80:80"
- "443:443"
networks:
- ...
1
vote
1
answer
125
views
Can't get nginx resolver to work
I'm facing issue with nginx when a container in network change his IP , i can access it in Linux OS But nginx didnt resolve the new IP... I searched alot about a solution and i see that nginx tell us ...
0
votes
1
answer
199
views
Dockerized http services are not accessible from nordvpn meshnet
I am setting up a home server (using ubuntu server 22.04) with several services deployed on various ports.
For example, my homepage server is deployed on port 3000.
When on the local network:
Ssh ...
0
votes
1
answer
70
views
Monitoring the actions performed to my docker container
Is there any way to monitor the operations performed on my docker container?
So, i have a docker container with name web. Now i want to check if anyone performs docker exec , docker cp etc , i want to ...
1
vote
2
answers
127
views
Can I use 127.0.0.2, 3, etc to map docker container ports to the same port but different loopback IP on my docker host?
I am using ubuntu 22.04 as docker host. On this host I deploy an nginx reverse proxy with TLS termination.I will deploy multiple (say 3) docker compose deployments on that host, and each one there ...
0
votes
1
answer
163
views
How do I mount a volume in docker so files aren't owned by root?
I have a directory on my linux computer (Ubuntu 23.10) called:
/home/steve/foobar/foo
The directory and all of the files in it are owned by user steve (uid 1000) and group steve (gid 1000).
I want to ...
0
votes
1
answer
172
views
Docker-compose rsync backup
I recently started working with docker-compose, and I'm currently in a situation where I need to upgrade the VM server. Unfortunately, I don't have access to the snapshot/restore option for certain ...
0
votes
0
answers
41
views
Connecting multiple PHP containers to a single shared Elasticsearch container
14 PHP containers php_1, ..., php_14 and 14 NGINX containers nginx_1, ..., nginx_14 are running on a server. The PHP container php_i is only connected to nginx_i and all NGINX containers are connected ...
2
votes
3
answers
133
views
Unable to login as admin with Postfix in docker container
I have tried to setup Postfix as a test server to allow TDD-tests to run with email verification on a local email server.
This is my yml file for docker compose
postfixadmin:
image: postfixadmin
...
0
votes
1
answer
48
views
The server receiving the HTTP request identifies the IP address of the container instead of the server's IP address
There is a Nginx container that belongs to the messaging microservice written in Laravel with IP 172.19.0.8 in a server. The container inside the server posts an HTTP request to another server. ...
2
votes
1
answer
642
views
Traefik routing to two ports in one docker container
I want to serve two web servers from a single docker container, and expose them through two ports using a Traefik proxy server.
I found an example docker compose file that serves two web servers from ...
1
vote
0
answers
275
views
Apache proxy unable to reach Docker container despite port being exposed and open
I have the most basic Apache proxy setup ever which I can't get to work.
On a CentOS server I'm running a regular Apache/httpd setup which serves a few websites. Apache listens on port 80 and 443.
...
0
votes
2
answers
173
views
How to serve static files for Docker Nextcloud-fpm behing nginx reverse proxy?
I have a similar problem to NextCloud FPM Docker Image behind an NGinX Docker Container as Proxy Reverse
I have multiple web apps running in Docker containers behing a Nginx reverse-proxy.
I'm trying ...
0
votes
1
answer
622
views
Share macvlan ip address with docker-compose container group
In a docker-compose container group, containers don't need addresses as they can communicate with each other using this pseudo-DNS provided by Docker only for the members of that group. Then, to ...
1
vote
1
answer
254
views
What's wrong in this nginx (dockerized) configuration in order to reverse-proxy to my local apps?
My goal is to use an nginx container to reverse-proxy specific paths to my application(s) running in my vps. I've successfully done it by setting up a nginx container manually, but not when using ...
0
votes
1
answer
221
views
Docker-Compose Error on CentOS 7: Shared Library Mapping Issue
I've encountered an issue with Docker on CentOS 7. Although I have successfully installed both Docker and Docker-Compose, when I run docker-compose --version, I receive the following error:
docker-...
0
votes
0
answers
313
views
passing docker .env variables to nginx site configurations
from docker-compose.yml:
nginx:
volumes:
- ./nginx/sites/:/etc/nginx/sites-available
inside nginx/sites there are a bunch of .conf files for different sites. I'd like to pass variables ...
0
votes
0
answers
233
views
docker-compose always automatically starts on computer startup
I have a secondary laptop that I seem to be having some weird docker-compose startup behavior on. I recently reinstalled the laptop, and cloned a bunch of docker-compose-enabled applications that I ...
0
votes
1
answer
97
views
Launching docker with parameters equivalent to compose file
I'm new to docker and trying to launch a container on my AlmaLinux 9, without digging deep into learning compose/docker...just experimenting with the basics. The compose file for the container I'm ...
-1
votes
1
answer
182
views
Letsencrypt is generating self signed certificate, not wanted
I'm struggling with generating certificates for my nginx proxy on Docker.
I've designed the docker-compose in the following way:
version: "3"
services:
postgres-db:
image: postgres:15....
0
votes
1
answer
124
views
How to write command for Kubernetes pod with flag and parameter on same line?
I have this configuration working for a Kubernetes/OpenShift cronjob/pod:
spec:
containers:
- name: activate-trigger
image: curlimages/curl
command:
- curl
- --header
- &...
0
votes
1
answer
416
views
Cannot access keycloak UI using other hostname besides localhost on port: 8089, using other ports is Ok
I am trying to run keycloak in 8089 port,
if I start the docker container in that port I can access the keycloak ui from: http://localhost:8089/
but I cannot access it using the keycloak hostname (...
0
votes
0
answers
55
views
Assign ip address to eth0 within docker container after I moved eth0 to a new namespace
Trying to implement WireGuard VPN killswitch using this tutorial The New Namespace Solution
But after I moving eth0 from init namespace to second namespace it lost assigned ip address:
ip netns add ...
1
vote
1
answer
246
views
How use profiles with swarm?
I want to set which profiles use to docker stack deploy. I mean, assume my docker-compose.yml is like this:
version: '3.8'
services:
admin:
image: "${ADMIN_IMAGE}"
restart: always
...
0
votes
1
answer
99
views
MySQL_Workbench Docker Ubuntu Linux
i'm using the docker-compose file from https://hub.docker.com/r/linuxserver/mysql-workbench.
version: "2.1"
services:
mysql-workbench:
image: lscr.io/linuxserver/mysql-workbench:latest
...
0
votes
0
answers
299
views
docker failed to bind port on 0.0.0.0:443 on a macvlan network
I'm running into a problem that has be stumped, I simply don't understand why what is happening is... happening.
First of all, the situation;
I have 1 network running:
macvlan_network (configured as ...
1
vote
0
answers
250
views
How to use dnsmasq in another docker container as a DNS server?
I need to create a local DNS server just for containers, for whitelist domain addresses.
dnsmasq.conf
port=53
domain-needed
bogus-priv
bind-interfaces
no-resolv
strict-order
server=/google.com/8.8.8....
0
votes
0
answers
74
views
Site is not accessible after deploying to the live server with docker
There is a web application, which is placed within a docker container. When I start the docker container using the docker compose locally - everything works fine. However, after deploying it to the ...
0
votes
1
answer
267
views
Picking up environment variables that have been set in docker compose file, from inside dockerfile
I have a postgres service in a docker compose file.
However, this service is not based directly on the postgres image. It is based on a dockerfile that builds on the postgres image.
This service in ...
0
votes
2
answers
789
views
Docker Mysql container: Connection Refused
So I have the following docker-compose.yml and .env file.
version: "3"
services:
cx_cache:
container_name: ${APP_NAME}_cache
image: redis:7.2.2-alpine
networks:
- ${...
0
votes
1
answer
593
views
how to expose apache docker container on port 8080 rather than port 80
I have a webserver running on port 80 , however I need the site to be accessed using 172.16.21.2:8080 , regardless of what port mapping i specify it is always accessed using port 80. How can i make my ...
0
votes
1
answer
2k
views
How-to install docker-compose on al2023
The docker documentation states the compose plugin is installed automatically with the latest docker version.
I built a new EC2 instance running al2023 and installed docker. But received this error:
$ ...
0
votes
2
answers
563
views
docker compose fail; SSH to host doesn't work any more
I have a Proxmox-VM on this VM runs Rocky Linux and docker with all basic plugins.
Rocky Linux 8.6 (Green Obsidian)
Docker 20.10.21
Docker compose v2.12.2
If I try to run the command docker compose ...
1
vote
1
answer
390
views
Why is docker compose failing with " ERROR [internal] load metadata for docker.io/library/python:3.11.6-alpine3.18 "?
I'm new to docker, trying to build a website by following a online course but i was struck with this error in the beginning itself
FROM python:3.9-alpine3.13
LABEL maintainer="rohitgajula"
...
0
votes
1
answer
201
views
FastAPI is masking Apache2 inside Docker
I setup a webserver and a FastAPI in a single docker container.
Here are the relevant parts of the Dockerfile:
FROM ubuntu/apache2:2.4-22.04_beta
[...]
# Apache conf
RUN echo '<VirtualHost *:80>\...
1
vote
0
answers
331
views
Strange Networking Issue: Ports 80 and 433 Unreachable from Outside, Docker
I'm encountering a perplexing networking issue that has me scratching my head. Here's the situation: I'm unable to access ports 80 and 433 from the outside, but I can forward any other port within ...
0
votes
0
answers
260
views
Keycloak is automatically changing certificate
I'm using Keycloak Quay 22.0.3 with docker-compose behind a Nginx reverse proxy but I have some troubles due an automatic replace of my certificate generated with certbot.
My certificate generated ...
0
votes
1
answer
281
views
restarting Oracle 23c within the docker container causes blocked listener
I am using the Free Oracle 23c Docker container (see here) to help provision a development environment.
As part of the configuration of the environment, I am putting scripts and SQL into /docker-...
2
votes
0
answers
80
views
Docker Postfix Admin bulk aliases, custom maps, and custom config files
I'm in the process migrating my bare metal postfix implementation over to docker to essentially upgrade my old box to a more docker/vm-centric server and hopefully add virtual domain support. I'm ...
-1
votes
2
answers
220
views
MariaDB Docker lagre db/binlog.* files. Overflows the disk to the point of failure
How to Fix?
ls -lh /root/docker/yml/nextcloud/db/binlog.*
-rw-rw---- 1 999 999 960M Aug 25 22:55 /root/docker/yml/nextcloud/db/binlog.000043
-rw-rw---- 1 999 999 5.5M Aug 25 23:52 /root/docker/yml/...
1
vote
0
answers
141
views
Why can I not connect to ipvlan l2 and macvlan networks on docker?
Macvlan
I have tried it on several computers and VM's.
I have tried activating promiscuous mode in all relevant computers and VM's. Related thread by me on Super User.
I have tried wireless and wired ...
0
votes
0
answers
326
views
Why does my Docker MySQL lose privileges for some users?
I am using the mysql 8 image in a docker compose file. Periodically I discover that the mysql user I set up for a database no longer has privileges on that database. The user still exists and has ...
0
votes
1
answer
246
views
Which entrypoint does the --entrypoint cli option in the docker compose command override?
So imagine this command:
docker compose -f docker/docker-compose.yml run \
--rm --entrypoint "" \
my-service
and something like this for docker/docker-compose.yml:
version: '3.9'
...
0
votes
0
answers
865
views
Dockerized Nginx Reverse Proxy - Real IP
I have following problem. I have a docker compose setup which spins up a frontend service using Nuxt3 and a backend API based on golang.This two containers are exposed via an Nginx reverse proxy ...