Tag: docker compose

Django celery in docker looking for already deleted tasks

I have set up my celery app for django and have been using docker for running it. I once run the code with following CELERYBEAT_SCHEDULE # define scheduled tasks here CELERYBEAT_SCHEDULE = { ‘test-scheduler’: { ‘task’: ‘users.tasks.test_print’, ‘schedule’: 10, # in seconds, or timedelta(seconds=10) }, } And, it works fine. Later on, I changed the […]

Golang docker library image cannot find go tool in $PATH

I opened an issue on docker-library/golang#164, because I think this is a bug. However, I thought I’d also ask on StackOverflow to see if anyone else (besides project contributors) have encountered this or have any ideas? First things first, the version numbers: $ docker version Client: Version: 17.03.1-ce API version: 1.27 Go version: go1.7.5 Git […]

Dockerizing Nodejs APP (graceful restart, ssl)

I am trying to dockerize a NodeJS application. I have followed this tutorial https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ It is really easy and works. But I need extend functionality a little bit. My infrastructure won’t contain only the nodejs container, it will have much more containers that are linked together with the help of docker-compose file. What I need […]

How insert an existing EC2 instance as container host in docker-machine?

Using docker-machine in Windows 10 OS, I would like to insert an existing EC2 instance as containers host, and use this for host containers and networks created by docker-composer, but I did not find any tutorial or a full explaination about it, Therefore I have the following questions. Is it necessary install docker and run […]

How can I restart container using healthcheck in docker-compose?

How can I restart docker container of server when curl failed to call API? I prepared such docker-compose.yml file. server: build: server command: – run healthcheck: test: [“CMD-SHELL”, “curl -f http://localhost/ && echo ‘cool, it works'”] interval: 5s timeout: 5s retries: 3 Thanks!!!!!

Docker-Compose v3 & NGINX network issue

So, I’ve been trying to dockerize Atlassian services (Bitbucket, Jira & Confluence) and it works great on my computer but as soon as I put it on my VPS (from OVH) it does not work. Here is my Docker-compose file: #DOCKER-COMPOSE version: “3.0” volumes: database-data: bitbucket-data: jira-data: confluence-data: services: nginx: image: nginx:1.12 container_name: nginx ports: […]

Running docker containers behind loadbalancer, ports not forwarded as expected

I am trying to run a server from CA in docker compose and I want to be able to cluster it. From the CA side this only means that the db is shared between multiple instances of the CA server. The server expose 9443,8443, 8080. The load balancer does not seem to forward these correctly […]

Show python system.info logs in docker-compose log

I am working on a web application organized with docker-compose. It consists out of a Python backend and a node frontend. I want to get python logging.info notifications in my docker-compose log. Somehow this is not working. My python Dockerfile is extremely basic: FROM python:3.6 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app ADD requirements.txt /tmp/ RUN […]

Docker-compose error with service env_file

I’ve been working on passing my sensitive data (credentials) to the docker container through a .env file. I’m using docker-compose and my docker-compose.yml file looks as follows: services: some-service: env_file: – .env But when I try to do “docker-compose up”, I get the below error: ERROR: In file ‘./docker-compose.yml’, service ‘env_file’ must be a mapping […]

Docker on windows 7: hello-world runs on Docker Quickstart Terminal but not on command prompt. why?

I haven’t been able to run hello-world on command prompt but on quickstart terminal it works. Why is that? Error message on command prompt: https://drive.google.com/file/d/0B0rw5s9roTIiWnpOM1JhVUNDZVU/view?usp=sharing In a broader context, I am trying to run Docker compose to set up a network but unsuccessful. So I figure understanding more about Docker would be helpful. Appreciate any […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.