Questions tagged [docker-compose]

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

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

581 questions
4
votes
2 answers

Docker-Compose in Development - Managing Subnets

I'm currently using Docker-Compose for development with a small team of people. I'll describe the setup and scenario we currently are facing. We have a single project checked into our VCS. Devevelopers check this out and do a "docker-compose up",…
Schodemeiss
  • 230
  • 1
  • 2
  • 7
4
votes
1 answer

Can't curl a linked container in Docker

I don't have a complex setup. 2 containers, one for my application and one for my API. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8f07c240bee2 …
coolfarmer
  • 41
  • 1
  • 2
4
votes
0 answers

docker-compose `restart: always` randomly not working

I administer a few Debian servers with Docker CE installed and docker-compose orchestrating several services (roughly 20 containers per machine).. Every single service is configured with restart: always in docker-compose. However, there are random…
adamsfamily
  • 285
  • 3
  • 10
4
votes
3 answers

Docker PostgreSQL change database encoding to UTF-8

I want to run via docker-compose a postgres container which has COLLATE and CTYPE 'C' and database encoding 'UTF-8'. But this looks to be impossible. This is the part on the docker-compose.yml: database: image: postgres:latest volumes: …
Philipp
  • 123
  • 1
  • 4
  • 13
4
votes
1 answer

Docker bridge network shadows IP of SSH client, how to recover gracefully?

We're running a RHEL 7 VM with Docker to host a couple of internal services. Last time I ran docker-compose up to spin up a new Docker container, I lost my SSH connection to the server and could also not re-establish it. A colleague was able to…
4
votes
1 answer

Error: could not determine PostgreSQL version from '11.7'

I found a Django project and failed to get it running in Docker container in the following way: git clone https://github.com/hotdogee/django-blast.git I have the following Dockerfile: FROM python:2 ENV PYTHONUNBUFFERED=1 WORKDIR /code COPY…
user977828
  • 225
  • 1
  • 6
  • 15
4
votes
1 answer

Nginx Docker container always restarting

My current docker-compose.yml looks like this: version: '3' services: testsite-nginx: image: nginx:alpine container_name: test_site_nginx restart: unless-stopped tty: true volumes: -…
Jaquarh
  • 181
  • 1
  • 1
  • 8
4
votes
2 answers

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 I don't know what am I missing (I'm new to…
elaspog
  • 223
  • 1
  • 2
  • 9
3
votes
0 answers

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 problem with the container in any meaningful way,…
Azeirah
  • 161
  • 6
3
votes
0 answers

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: …
emmdee
  • 2,187
  • 12
  • 36
  • 60
3
votes
1 answer

MariaDB on docker keeps corrupting data

I'm using the official MariaDB mariadb:10.4.6-bionic image and I have a problem: my tables corrupt themselves. This had happened at least four times this month: on two different dev machines using docker-compose on the staging machine using docker…
3
votes
3 answers

How to setup IPv6 with docker-compose

I am using Ubuntu 18.04 on DigitalOcean, with IPv6 turned on: PUBLIC IPV6 ADDRESS: xxxx:xxxx:2:d0::216f:3001 PUBLIC IPV6 GATEWAY: xxxx:xxxx:2:d0::1 CONFIGURABLE ADDRESS RANGE: xxxx:xxxx:2:d0::216f:3000 - xxxx:xxxx:2:d0::216f:300f According to this…
ロジャー
  • 223
  • 1
  • 3
  • 8
3
votes
0 answers

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 Apache on it from before, I decided to set up a…
Oleg
  • 373
  • 1
  • 7
  • 17
3
votes
2 answers

Which tools simplify administration tasks with Docker containers?

Context: My task is to administer a virtual machine with about 5 web services for a small workgroup. I plan to run all services in Docker containers. An additional nginx Docker container should redirect requests to the different services. Problem: I…
thando
  • 135
  • 5
3
votes
0 answers

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 Image. My setup: #docker-compose.yml services: …
ChrKong
  • 31
  • 1
  • 2