Questions tagged [docker-compose]

Compose is a tool for defining and running multi-container Docker applications.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Control startup with docker-compose-wait postgres

Hello I'm trying to use a script to start my container node after my pg with this: #building code FROM node:lts-alpine ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.3/...
1
vote
0answers
26 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 ...
0
votes
2answers
57 views

Changing port of mariadb in docker-compose

I run a number of WordPress sites using docker-compose (and nginx-proxy). So I can use the same docker-compose file for each site I use .env. I want each of the MariaDB containers to use different ...
1
vote
0answers
38 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" ...
0
votes
0answers
31 views

Can not stop tzdata asking for user input during docker-compose build

I've tried several things including ENV DEBIAN_FRONTEND=noninteractive ENV TZ=Europe/Lnndon RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone But whatever I ...
0
votes
0answers
15 views

SSH connection not working in gitea

I have setup gitea using docker-compose, External SSH port of my machine is 4444 which I set in sshd_config version: '2' volumes: gitea: postgres: networks: gitea: external: false services:...
0
votes
1answer
31 views

Docker-compose // OCI runtime create failed // pthread_create failed

Recently I have rent a VPS as private playground and for learning docker. I want to host a few webservices behind nginx-proxy together with docker-letsencrypt-nginx-proxy-companion. Setup The ...
0
votes
0answers
8 views

Docker external network affecting local host network on container restart : ERR_NETWORK_CHANGED

I am facing a weird issue with the docker networks. I am using an external network of bridge type named extenal_network in my docker containers with auto-restart enabled. I am not able to access my ...
0
votes
0answers
15 views

How to load balancing docker scale containers

I'm trying to balancing request between two docker containers launched under scale mode and allocated ports: version: '2' services: nginx: image: 'bitnami/nginx:latest' depends_on: ...
0
votes
1answer
11 views

Pushing to local docker registry gives connection reset error in githubactions

Pushing to local docker registry gives connection reset error It was this same situation but instead for github actions which appeared to have different issues. I also followed this: https://github....
0
votes
0answers
6 views

Persistent storage failure or Authorization Failure after Mongocontainer restart using docker-compose rebuild after Machine restart

I have set up a mongo container connected to a nodejs app. First I do docker-compose up --build where I start mongo as a service without auth, i.e commented out. Then I login to the mongo terminal ...
0
votes
0answers
20 views

Detecting changes for 'docker-compose build' in ansible

Let's say an ansible task performs docker-compose pull, and reports the result like this: changed_when: "'... pull complete' in result.stderr |default('')" That works because stdout shows "... pull ...
0
votes
0answers
35 views

ECS-CLI: Getting “is used but no declaration was found in the volumes section” on Windows

I'm trying to run ecs-cli compose up on Windows 10 to run docker-jitsi in the cloud. Here is docker-compose.yml sample: https://github.com/jitsi/docker-jitsi-meet/blob/master/docker-compose.yml When ...
0
votes
0answers
15 views

How to run setfacl inside a Docker Container

I have a bash file which uses ACLs to give permission to certain users. The bash file looks like sudo setfacl -m u:ChiefCommander:rwx /home/Army$i When i am building a Docker Container using this ...
0
votes
1answer
28 views

How to get an IPv6 subnet to use in Docker?

I have an IPv6 IP on the guest server which running docker 301b:e0d0:401:0348:lk19:7:0:2 Configuration in the /etc/resolv.conf domain my.domain nameserver ::1 nameserver 301b:e0d0:401:0348:505:7:0:...
0
votes
0answers
16 views

How to create IPv6 network connection in Docker?

Note: The IPv6 here isn't the real IP. Create a network docker network create -d bridge --ipv6 --subnet=123c:d0f0:202:1920::/64 awx Installed AWX with costomized docker-compose.yaml file version: '...
0
votes
0answers
12 views

Docker running on a amazonlinux:2 with an apache webserver returns 503 service unavailable

Setting up a docker container containing a apache webserver running on a linux OS. I am trying to setup a docker environment where i run an apache webserver at a amazonlinux:2 OS through docker. I am ...
0
votes
1answer
183 views

Http-01 Challenge failed and Connection refused

I just bought a new server, and want to follow this for www.pretty-formula.com. Here is the record I added to pretty-formula.com: In the server, ufw status returned Status: inactive. After putting ...
0
votes
0answers
117 views

How to install AWX successfully with docker-compose(Big Host is already in use by another container issue)?

When use docker-compose install AWX, got this error: TASK [local_docker : Start the containers] ********************************************************************************************************...
1
vote
1answer
126 views

Nginx 301 redirect with nginx-proxy and nginx-proxy-companion

I'm using something like this docker-compose.yml file. version: '3' services: httpd: image: httpd:alpine environment: - VIRTUAL_HOST=example.com,www.example.com - ...
0
votes
0answers
51 views

Docker volume error read-only file system\\\“\”": unknown

Context I am experiencing something strange while integrating promtail to my stack ERROR: for asmodius_promtail Cannot start service promtail: OCI runtime create failed: container_linux.go:349: ...
0
votes
1answer
61 views

Php+Nginx+Varnish on docker-compose, ubuntu18

!Important. SOLUTION FOUND. Everything below is working fine for me. And this is almost the only case when you may copy solution from the question. For it read "My Configuration" section Main ...
0
votes
0answers
37 views

Recommend way of setting-up custom docker network?

I'm trying to setup transparent proxy network using container (docker) Client (C) Proxy (P1) Proxy (P2) 10.10.1.1/24 10.10.2.1/24 10.10.3.1/24 veth0 veth0 ...
0
votes
0answers
11 views

docker-compose maps Container ID different from docker

Having a userns-remap I try to build a docker image. When I run docker build ., everything works out fine Running docker-compose build . fails with Container ID 165534 cannot be mapped to a host ...
0
votes
1answer
25 views

issue with shibboleth SP in docker container behind proxy

I am trying to get a shibboleth set up working in a docker container behind a proxy. Currently I am able to get redirected to the shibboleth idp page where I can enter my login details and shibboleth ...
0
votes
0answers
13 views

Docker image pushing but my volume not persist

This message to clear up a problem I am having with the use of docker with my php application. Indeed, I execute locally my dockers images (nginx, phpmyadmin and php with my application) and ...
0
votes
0answers
9 views

docker container occasionally stops resolving another service (rest of internet works ok)

I have two services set up in docker-compose - joomla and mysql. They share a network, while joomla is also connected to another docker network, that is external to the docker-compose (for traefik). ...
0
votes
0answers
21 views

Superslow response from wordpress running in docker

I use official wordpress docker image with mariadb: version: '3' services: hlshop: container_name: hlshop_container image: "wordpress:latest" ports: - "8000:80" volumes: ...
0
votes
1answer
61 views

CUPS client not working with docker container name

CUPS client cannot print when providing the CUPS server as container name, while it works fine with the container IP: Sample docker-compose.yml: version: '3.7' services: client: ...
0
votes
0answers
15 views

Dockercompose exited with code 0 but dockerbuild can build file normal?

When I run docker-compose up, 1 of my services run and the others exited with code 0 Attaching to docker_keystone_1, docker_glance_1 docker_glance_1 exited with code 0 When I try to build it by hand,...
1
vote
1answer
390 views

Docker based reverse proxy with NginX for multiple domains

I'm trying to create a docker based multi-container setup with a reverse proxy for multiple domains to serve, where the websites, the databases and the nginx based reverse proxy run in containers, but ...
0
votes
0answers
10 views

Kill and remove container and its dependencies in docker-compose

Do I get it right that it is impossible to remove a tree of depending containers in docker-compose, unless it is not the complete project? I have one basic service all other containers depend on and ...
1
vote
1answer
37 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" ...
0
votes
1answer
47 views

Database Is lost when Docker Container is stopped. How to recover?

I have the following compose file, from this project: version: "3" volumes: static-files: driver: local postgres: driver: local services: db: image: postgres:11.1 ...
0
votes
1answer
16 views

NGINX logs not being mapped with Docker volumes

I define two log levels in my Nginx config file http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' ...
0
votes
1answer
81 views

How to change docker-compose.yml in autorestarting docker-compose

my docker-compose.yml included MySQL 5.6 and phpMyAdmin: version: '3.3' services: db: image: mysql:5.7 command: --default-authentication-plugin=mysql_native_password restart: always ...
0
votes
0answers
36 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 ...
0
votes
1answer
270 views

Why does docker-compose issue a “No such file or directory” when the file is there?

I am testing a bare metal recovery of my server which basically starts a set of docker container with my services. I recovered from a backup /etc/docker, where I keep all the configuration and ...
0
votes
0answers
34 views

How to avoid Payara's GlashfishSingleSignOn NPE on null Context for PwcCoyoteRequest getContext().getRealm() when put behind nginx proxy_pass

I have a typical docker-compose setup where my Java AS (Payara) is behind a web server (nginx) that implements a reverse proxy via proxy_pass directive to forward all application server requests to ...
0
votes
0answers
18 views

Add sh aliases into docker container via docker-compose.yml

I want to add useful aliases or functions into various docker containers. So in docker-compose.yml I bypassed the entrypoint, added aliases, then ran the normal entrypoint: entrypoint: sh -c ' ...
1
vote
1answer
34 views

AWS: ECS/ALB setup, converting a docker-compose file, port mapping to mulitple containers

I know this is not an 'original question'. The general topic is covered extensively. Neverthless i'm struggling with my particular setup: I'm trying to basically convert the following docker-compose ...
0
votes
0answers
13 views

How to manage docker volume in swarm when a service is deployed on another node?

I have a swarm cluster and some DB containers that use volumes. The stack is deployed using docker-compose files. Now, a db service is being deployed to another swarm node. How do I efficiently move ...
0
votes
0answers
43 views

Unable to set “consistency LOCAL_ONE;” to cassandra container startup

I am new to Cassandra DB and want to run YCSB benchmarking tool on single Cassandra container within docker for testing purpose. I am doing this with docker-compose and also come-up with the required ...
0
votes
0answers
23 views

mysql database not created in docker setup

I am trying to set up a mysql database in docker. I have a docker-compose.yml file like so: version: '3' services: db: image: mysql restart: always ports: - '3306:3306' ...
0
votes
0answers
42 views

Run a React frontend in bitnami+docker+nginx

I'm taking over a website https://jsaddin.10studio.tech. Unfortunately, I cannot reach the previous developer anymore. This part is a ReactJS front-end. He decided to use bitnami+docker+nginx in the ...
0
votes
0answers
13 views

Docker + Django + Nginx Random Intermittent 504

I am working on containerizing a Django application with Docker but I am having a lot of trouble getting the application to run consistently. My configuration below: Dockerfile FROM ubuntu:18.04 ...
0
votes
1answer
25 views

set time period to restart a container with docker-compose

how would you do to restart the container service every 60 seconds I tried sleep but it doesn't work for me: spark: image: jaegertracing/spark-dependencies environment: - STORAGE=...
0
votes
2answers
50 views

How can I make an IP white list for a port that is exposed with docker-compose

I'm trying to make a port (that is exposed by docker-compose) on public IP available only for some of my other IP addresses. I still need other ports to accept connections from any IPs. I've tried ...
0
votes
0answers
698 views

Docker nginx+php-fpm ttfb is slow compared to bare metal

I have nginx and php-fpm running in separate docker containers. Php-fpm processs the same php script in as fast time as php-fpm running on bare-metal (not using docker). However, the TTFB when using ...
0
votes
1answer
167 views

Recreate containers with no downtime in docker-compose

I am using docker-compose for deploying several containers on the same host. My images are built in Google Cloud Build and stored on gcr.io; I am not using docker-compose to build my images. When I ...

1
2 3 4 5
8