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.

529 questions
0
votes
0 answers

nginx locations point not to different files

In my public folder, I have $ ls public index.php mGSV and $ ls public/mGSV/ ARCHITECTURE.txt Install base_mgsv.php history.php index.php mgsv.php scripts tmp Arial.ttf README contact.php …
user977828
  • 205
  • 4
  • 15
0
votes
1 answer

How to hook up multiple images in AWS ECR

I have the following docker-compose.yml: version: '3' services: server: build: context: ../../ dockerfile: ./packages/website/Dockerfile command: yarn serve environment: PORT: 3000 …
dagda1
  • 237
  • 3
  • 6
  • 19
0
votes
0 answers

Why gunicorn is not serving static files?

I am having trouble with my django, docker, nginx, and gunicorn setup. I cannot get the static files to show when running the server even after I collectstatic them. And when I have nginx, I either get an error saying the port I am using is already…
user460937
  • 1
  • 1
  • 2
0
votes
2 answers

Zero Down Time deployment Node.js Docker

I have a React/Node.js application running on a single server using docker-compose. I'm trying to achieve a 0 downtime deployment for my react app. The process right now, does a webpack build (replaces the files in my dist folder) and then docker…
0
votes
3 answers

PHP7-FPM Docker CMD results in 502 Nginx Error

I've a docker compose that use two containers: nginx and php7-fpm. I'm building php via Dockerfile and I need cron installed on it: FROM 'php:7-fpm' # PDO RUN docker-php-ext-install pdo_mysql # Cron RUN apt-get update -q -q && apt-get install -y…
Jumpa
  • 111
  • 1
  • 5
0
votes
1 answer

How to Run a Specific Service in a Dockerfile with Multiple Services?

Is there a flag I can pass into docker-compose that can specify a single service within it to run? For example: version: "2" services: fetcher: build: context: ./build1/ environment: - MONGO_URL=mongodb://132.216.27.81:23012/ …
Stunner
  • 103
  • 3
0
votes
1 answer

Could not login to docker container

I am trying to run my node.js app and mongodb using docker compose. I could setup the containers successfully as follows. The site is also working. But I could not login into the containers. docker ps -a Output CONTAINER ID IMAGE …
0
votes
1 answer

How to route certain network traffic from docker container with internal network to a target in the host lan

I have a docker-compose setup which looks like this: version: "3" services: client1: cap_add: - NET_ADMIN image: "client:testing" container_name: "client1" privileged: true tty: true networks: nwclient1: {} …
0
votes
2 answers

adding reverse proxy listeners nginx stops all traffic to port 80

I have two running docker containers: A Docker container running Nginx that serves Angular app resource files that were copied into the Docker image on docker build A Docker container that is an api that is current listening on port 5007 internally…
Brian
  • 311
  • 3
  • 4
  • 14
0
votes
1 answer

Monitoring and restarting docker container (docker-compose)

I'm looking into ways of deploying, monitoring and restarting (in cause of failure) my docker containers with docker-compose, but I can't find anything else than using swarm. Not that swarm is bad, but I want to study all the possibilities, pros and…
alexandernst
  • 494
  • 3
  • 7
  • 21
0
votes
2 answers

Docker Issue - exit status 34

I am facing "exit status 34" while creating docker service. please suggest what is the issue. Docker version : Docker version 17.09.1-ce, build 19e2cf6 Error Log :nsenter: failed to unshare namespaces: Cannot allocate memory container_linux.go:265:…
0
votes
0 answers

Data only Docker container

With docker compose file version 3 I can't seem to figure out how to create a data only container for my mariadb container. Can anyone please suggest how to do it? Here is my current compose file: mariadb: image: mariadb:dev restart:…
0
votes
2 answers

Setting up docker.compose.test : 3000 port already allocated

I have a project which includes a docker setup that I'm trying to get working. My Dockerfile is: FROM node:8-alpine EXPOSE 3000 ARG NODE_ENV ENV NODE_ENV $NODE_ENV RUN mkdir /app WORKDIR /app ADD package.json yarn.lock seed.js /app/ RUN yarn…
0
votes
1 answer

Remote port binding at docker compose

I have compose file that which have mariadb service in it. But I have completely separated dedicated mariadb machine in my network and I want to use it instead of a mariadb container. Is there a way to expose remote port of that MariaDB to the my…
thiras
  • 165
  • 1
  • 1
  • 7
0
votes
0 answers

Docker Swarm Failover

I have an application that has 2 containers: a database and the middleware. I would like to use docker-compose to deploy this application to a docker swarm. Each container in my application depends on a 3rd-party license which applies per processor.…
Stuporman
  • 131
  • 6