Tag: docker compose

Docker – secure mysql configuration

I want to make a separate docker container for mine mysql database which will run for my production and test environment. The problem is that it has the potential to exposes the port number and environment values to for example hackers who have gained access to the container. How can I write a secure mysql […]

Launch external program with multiple commands via Powershell

I am currently attempting to launch a different console (.exe) and pass multiple commands; while starting and entering a command works just fine, I haven’t been able to find out how multiple ones can be entered via powershell. & “C:\Program Files\Docker Toolbox\start.sh” docker-compose up -d –build The given command works fine, but as mentioned I […]

Docker rails project

Having a Dockerfile using docker-compose up recently gives me below error and I cannot figure out why this is happening. I have searched for hours to no avail. Anyone an idea why this would happen? Cannot start container e3de3c07767357b73dd0b6c4a6c6aaefa046e87c50e35a0bcc1fcba010xx8xx: [8] System error: exec: “/srv/myapp/bundle”: stat /srv/myapp/bundle: no such file or directory FROM ruby:2.2.0 EXPOSE 80 […]

MongoDB Docker Windows dev env. linux production env. possible solution?

I have been struggling with this for 3 days. My situation: Windows 10 dev machine Ubuntu Docker production machine I have docker working on everything except this mongodb mess, it is not allowing me to use the standard mongo:latest base image on windows, I can’t use the the windows version as my app uses containers […]

Docker Compose: initialize / customize images from hub on the fly & run

I am new to docker compose and can’t figure out how to customize my images from private/public docker hub, before it starts with compose. The final purpose is to have standard images on hub, which are called by compose and customize on the fly with one configuration file stored locally (containing password, IP, private info). […]

docker – NGINX Proxy + Let's encrypt

I’m starting with Docker. On start I want to set up simple server on nginx with proxy and SSL (only local on my machine) so I do somethink like this: version: ‘2’ services: nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy ports: – “80:80” – “443:443” volumes: – ./certs:/etc/nginx/certs:ro – /etc/nginx/vhost.d – /var/run/docker.sock:/tmp/docker.sock:ro – /usr/share/nginx/html labels: – com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true […]

Docker container cannot resolve hostnames

i am creating a docker-compose.yaml file that has to create a pypi local repository and a container with a dev application i am writing. The problem is that, inspite of the fact that i have created custom network and specified hostnames, containers cannot see each other. More specifically, pypi has to be up and running; […]

Docker: Unable to connect to container from host

I try to use docker-compose in order to run an app which consists of 2 container: akka app and postgresql. Here is yaml file: version: “3” services: api: image: akka-app:latest ports: – “9000:5000” db: image: postgres-db:latest After the docker-compose up command I see that containers are up and running using docker ps command: CONTAINER ID […]

Using command output as environment variable value?

I’d like to replicate a user’s GID and UID to create a new user in my image using these values in order to fix permission problems with a volume. I already found this answer that explain how to do. But I’d also like to do it dynamically in my docker-compose.yml file. To achieve this I’d […]

How can I pass build args with a remote image in docker-compose.yml?

I would like to pull a remote image from a private registry. The image’s dockerfile contains some args whose values would be populated via docker-compose.yml. For example: version: ‘3.0’ services: api: image: remoteApiImage web: image: remoteWebImage build: args: baseurl: http://remoteApiImage:80 Currently, this does not work as build requires a context. However, if I set a […]

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