docker-compose

Angular-CLI proxy not working inside docker

柔情痞子 提交于 2019-12-06 05:04:48
I have a docker-compose file with everything I need for my project. This docker-compose has a nginx server, mysql, phpmyadmin and php. At the top of it, I added recently an angular container. Everything is working fine if I go to localhost:4200, I'm on the angular app, and if I go to localhost:80, I'm on the Laravel backend. Now I need to make a simple classical request to my backend API. I set up a proxy for angular looking like this : { "/api/*": { "target":"http://localhost:80", "secure":false, "changeOrigin":true, "pathRewrite": {"^/api" : ""}, "logLevel":"debug" } } This is the config I

Unable to run Docker Toolbox on windows 10 home even after enabling virtualization from BIOS settings

大兔子大兔子 提交于 2019-12-06 04:29:56
On running docker quickstart terminal I get the following error: Running pre-create checks... Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue... I have tried everything from enabling the virtualization from the bios setting to reinstalling the toolbox but this error doesn't seem to go away. I read that since Windows 10 home doesn't support Hyper-V so one has to use docker toolbox but still this error is coming. Please

fix git diff-files listing all files in docker

给你一囗甜甜゛ 提交于 2019-12-06 03:59:14
I am trying to write a script that will use git to get the files that have changed and run commands based on that. I do my development with docker-compose and here is the repo I am working on https://github.com/my-grocery-price-book/www when running git diff-files from inside the container it lists all the files. when running git diff-files from outside the container list no files. upgrading git inside the container to the latest version of 2.16 still gives the same output. Steps to reproduce: git clone https://github.com/my-grocery-price-book/www.git docker-compose run --rm app bash git diff

fix git diff-files listing all files in docker

谁说我不能喝 提交于 2019-12-06 03:57:31
I am trying to write a script that will use git to get the files that have changed and run commands based on that. I do my development with docker-compose and here is the repo I am working on https://github.com/my-grocery-price-book/www when running git diff-files from inside the container it lists all the files. when running git diff-files from outside the container list no files. upgrading git inside the container to the latest version of 2.16 still gives the same output. Steps to reproduce: git clone https://github.com/my-grocery-price-book/www.git docker-compose run --rm app bash git diff

Docker with Symfony 4 - Unable to see the file changes

别等时光非礼了梦想. 提交于 2019-12-06 03:51:25
I'm working on a docker image for dev environment for a Symfony 4 application. I'm building it on alpine , php-fpm and nginx . I have configured an application, but the performance was not great (~700ms) even for the simple hello world application, so I thought I can make it faster somehow. First of all, I went for semantics configuration and configured the volumes to use cached configuration. Then, I moved vendor to separate volume as it caused the most of performance issues. As a second thing I wanted to use docker-sync as the benchmarks looked amazing. I configured it and everything ran

docker-compose.yml的使用

会有一股神秘感。 提交于 2019-12-06 03:28:34
docker-compose.yml的使用 docker-compose.yml包含version、services、networks3大部分 services的书写规则 1.iamge services: web:             # 服务名称,用户自定义 image: busybox         # 镜像名称/镜像ID,如果本地不存在compose会拉取镜像  # 以下格式都可   images: redis   images: mysql:latest   images: example-registry.com:4000/postgresql         2.build-------基于Dockerfile,指定Dockerfile所在路径,Compose会利用它自动构建镜像,然后启动服务容器 # 绝对路径 build: /path/build # 相对路径 build:./build # 设定上下文跟目录,以此目录指定Dockerfile build: context: ../ dockerfile: path/Dockerfile # 给Dockerfile构建的镜像命名 build: ./dir images: nginx:latest # 构建过程中指定环境变量,构建成功后取消 build: context: . args: buildno: 1

Overriding VS 2017's docker-compose dynamically created entrypoint

旧时模样 提交于 2019-12-06 03:26:34
问题 When using the integrated docker-compose structure in Visual Studio 2017, the system provides visibility to a two-tiered docker-compose structure. docker-compose.yml and docker-compose.override.yml Settings in the override take precedent over those in the former file. When the file is actually executed, it includes a third, auto-generated Docker compose file ... docker-compose.vs.*configuration*.g.yml This latter file contains mostly values related to debugging interactions and mapping

Communicating between different docker services in docker-compose

旧街凉风 提交于 2019-12-06 02:59:28
I just started working with docker-compose and am currently struggling with communication between the different services. I have 2 services, alice and bob . I want these to be able to send http requests to each other. As far as I understood, services should be able to reach each other by using the servicename as hostname. Unfortunately, alice in my example is not able to reach bob on http://bob:5557 , and bob is not able to reach alice on http://alice:5556 . What am I not understanding correctly? Is it even possible to make http requests between services? This is my docker-compose.yml file:

Relative path not working with named volumes in the docker-compose.yml

爷,独闯天下 提交于 2019-12-06 02:58:07
问题 I need to make a named volume use a relative path to the folder where the docker-compose command is executed. Here is the volume definition in the docker-compose.yml volumes: esdata1: driver: local driver_opts: type: none device: ./esdata1 o: bind It seems that docker-compose do not create the folder if it does not exist, but even when the folder is created before lauching docker I'm always getting this error: ERROR: for esdata Cannot create container for service esdata: error while mounting

Docker - how to set up Apache + PHP in docker-compose.yml

﹥>﹥吖頭↗ 提交于 2019-12-06 02:56:36
I use this to set up nginx for PHP: nginx: image: nginx:latest ports: - 8080:80 volumes: - ./code:/code - ./site.conf:/etc/nginx/conf.d/site.conf links: - php php: image: php:7-fpm volumes: - ./code:/code But how about Apache? How can I set up Apache + PHP in docker-compose.yml? Following this guide : version: '2' services: php: build: php ports: - "80:80" - "443:443" volumes: - ./php/www:/var/www/html Error: ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration