Tag: docker compose

Cant mount volume docker run

Can’t mount volumes with below script docker run –server -p 8080:80 -v /d/XAMPP/htdocs:/var/www/html -d php:7.0-apache When I try docker run –server -p 8080:80 -v /d:/var/www/html -d php:7.0-apache With this command only XAMPP folder is mounting in docker and I don’t see any folders inside, and I have 403 when I try to access root folder […]

Docker – nginx with custom conf

When running docker-compose up with the following docker-compose.yml file, nginx immediately exits after starting. When I remove the following line: – ./nginx/config:/etc/nginx/conf.d nginx does not immediately exit. docker-compose.yml version: ‘3’ services: nginx: image: nginx ports: – ‘8080:80’ volumes: – ./nginx/log:/var/log/nginx – ./nginx/config:/etc/nginx/conf.d – ../wordpress:/var/www/wordpress php: image: php:fpm ports: – 9000:9000 mysql: image: mysql ports: – […]

Docker-Compose – Restart my reverse proxy automatically in case of image update

I have a few microservices running and a apache container acting as reverse proxy. I also have CD environment where a git commit for any of the services automatically builds the image and deploys it on my integration environment. However, my reverse proxy container doesn’t restarts as it’s own configuration or image isn’t changed. But […]

Share docker container permission to php-fpm image from volumes_from

I’m dockerizing an application made in laravel. I made the compose file creating a data container for this application, master, and using nginx and php-fpm for serve it, but all time i got permission problems: salahaddin@TulipanROG  ~/Proyectos/UzmanTech/opus  nginx-server ✚ ●  docker-compose logs -f | grep opus.php  130 ↵  2678  […]

Separate CI workflows for multiple applications within same Git repo

I am creating a Docker application with the following code structure in one Git repo: .git docker-compose.yml api Rails app… admin JS app… auth Node app… www JS app… I’m in the process of learning CI as well, so far I’ve worked with a very basic CircleCI setup. What I would like to do is […]

Docker MariaDb – remote access

I’m trying to set up remote access to MariaDb via Traefik: MariaDB docker-compose.yml version: “2” services: jpz-mariadb: image: mariadb:latest environment: – MYSQL_ROOT_PASSWORD=root – MYSQL_DATABASE=database – MYSQL_USER=user – MYSQL_PASSWORD=pass networks: – web volumes: – ./db:/docker-entrypoint-initdb.d – jpz-mariadb:/var/lib/mysql:nocopy # I want to manage volumes manually. labels: – ‘traefik.backend=jpz-mariadb’ – ‘traefik.frontend.rule=Host:mariadb.localtest.me’ jpz-pma: image: phpmyadmin/phpmyadmin environment: PMA_HOST: jpz-mariadb PHP_UPLOAD_MAX_FILESIZE: […]

Docker Cloud autotest cant find service

I am currently trying to dockerize one of my Django API projects. It uses postgres as the database. I am using Docker Cloud as a CI so that I can build, lint and run tests. I started with the following DockerFile # Start with a python 3.6 image FROM python:3.6 ENV PYTHONUNBUFFERED 1 ENV POSTGRES_USER […]

Configuring application in docker container to access other containers

How can you configure an app deployed as a docker container to reference components running in other containers? I have a node app that requires postgresql. I have a node config file that contains all the connection information for postgres. In a non-docker deployment, you simply set the required config values (e.g. IP address of […]

Setup local WordPress development environment with Docker error 500

I need help with setting up my docker, I know there is much already configured environments but I need the one that fits my needs. Bellow you can find my setup. docker-compose.yml version: ‘3’ services: nginx: image: nginx:latest ports: – “80:80” volumes: – ./wordpress:/var/www/html – ./config/nginx:/etc/nginx/conf.d – ./logs/nginx:/var/log/nginx depends_on: – phpfpm restart: always mariadb: image: […]

Permisson error with mongo when running docker

My docker-compose: version: “2” services: bimbucket-api: build: . ports: – “3007:3007” links: – mongo volumes: – .:/opt/app mongo: image: mongo volumes: – /data/db:/data/db ports: – “27017:27017” I get permissionerror: mongo_1 | chown: changing ownership of ‘/data/db/diagnostic.data/metrics.2017-06-27T13-32-30Z-00000’: Operation not permitted mongo_1 | chown: changing ownership of ‘/data/db/journal/WiredTigerLog.0000000054’: Operation not permitted mongo_1 | chown: changing ownership of […]

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