docker-compose

Docker: using container with headless Selenium Chromedriver

喜你入骨 提交于 2021-02-17 20:56:39
问题 I'm trying to link peroumal1's "docker-chrome-selenium" container to another container with scraping code that uses Selenium. He exposes his container to port 4444 (the default for Selenium), but I'm having trouble accessing it from my scraper container. Here's my docker-compose file: chromedriver: image: eperoumalnaik/docker-chrome-selenium:latest scraper: build: . command: python manage.py scrapy crawl general_course_content volumes: - .:/code ports: - "8000:8000" links: - chromedriver and

Docker: using container with headless Selenium Chromedriver

随声附和 提交于 2021-02-17 20:56:37
问题 I'm trying to link peroumal1's "docker-chrome-selenium" container to another container with scraping code that uses Selenium. He exposes his container to port 4444 (the default for Selenium), but I'm having trouble accessing it from my scraper container. Here's my docker-compose file: chromedriver: image: eperoumalnaik/docker-chrome-selenium:latest scraper: build: . command: python manage.py scrapy crawl general_course_content volumes: - .:/code ports: - "8000:8000" links: - chromedriver and

Docker - ELK - vm.max_map_count

浪尽此生 提交于 2021-02-17 15:20:34
问题 I'm trying to use the docker's image elk-docker (https://elk-docker.readthedocs.io/) , using Docker Compose. The .yml file, is like this: elk: image: sebp/elk ports: - "5601:5601" - "9200:9200" - "5044:5044" When I run the command: sudo docker-compose up, the console shows: * Starting Elasticsearch Server sysctl: setting key "vm.max_map_count": Read-only file system ...fail! waiting for Elasticsearch to be up (1/30) waiting for Elasticsearch to be up (2/30) waiting for Elasticsearch to be up

Docker - ELK - vm.max_map_count

≯℡__Kan透↙ 提交于 2021-02-17 15:19:33
问题 I'm trying to use the docker's image elk-docker (https://elk-docker.readthedocs.io/) , using Docker Compose. The .yml file, is like this: elk: image: sebp/elk ports: - "5601:5601" - "9200:9200" - "5044:5044" When I run the command: sudo docker-compose up, the console shows: * Starting Elasticsearch Server sysctl: setting key "vm.max_map_count": Read-only file system ...fail! waiting for Elasticsearch to be up (1/30) waiting for Elasticsearch to be up (2/30) waiting for Elasticsearch to be up

Meaning of ampersand (&) in docker-compose.yml file

五迷三道 提交于 2021-02-17 08:43:14
问题 I recently came across this and was wondering what &django means version: '2' services: django: &django I can't see anything in the docs related to this. 回答1: These are a YAML feature called anchors, and are not particular to Docker Compose. I would suggest you have a look at below URL for more details https://learnxinyminutes.com/docs/yaml/ Follow the section EXTRA YAML FEATURES YAML also has a handy feature called 'anchors', which let you easily duplicate content across your document. Both

docker compose up working fine but browser showing site can't be reached

有些话、适合烂在心里 提交于 2021-02-17 07:02:39
问题 docker-compose up showing this: Recreating tutorial_product-service_1 ... Recreating tutorial_product-service_1 ... done Attaching to tutorial_product-service_1 product-service_1 | * Running on http://0.0.0.0:80/ (Press CTRL+C to quit) product-service_1 | * Restarting with stat product-service_1 | * Debugger is active! product-service_1 | * Debugger PIN: 192-693-276 and my docker-compose.yml version: '3' services: product-service: container_name: tutorial_product-service_1 build: ./product

What is the equivalent of ‍-h in docker-compose?

允我心安 提交于 2021-02-17 06:23:26
问题 I want convert docker run to docker-compose with -h parameter What is the equivalent of ‍‍‍‍ -h in docker-compose ? My docker run command: docker run --rm -p 8080:80/tcp -p 1935:1935 -p 3478:3478 -p 3478:3478/udp bigbluebutton -h webinar.mydomain.com My docker-compose version: "3" services: bigbluebutton: build: . container_name: "bigbluebutton" restart: unless-stopped ports: - 1935:1935 - 3478:3478 - 3478:3478/udp - 8080:80 networks: public: networks: public: external: name: public 回答1:

How to run docker containers in host network mode using docker-compose?

 ̄綄美尐妖づ 提交于 2021-02-17 04:44:27
问题 I need to run containers from docker-compose in host network mode. For example, if I run single container, I write: docker run --net=host my_image How to do this part --net=host in docker-compose? 回答1: The equivalent in docker-comopose is network_mode: host see the documentation in: https://docs.docker.com/compose/compose-file/ 来源: https://stackoverflow.com/questions/44658101/how-to-run-docker-containers-in-host-network-mode-using-docker-compose

How to run docker containers in host network mode using docker-compose?

橙三吉。 提交于 2021-02-17 04:42:23
问题 I need to run containers from docker-compose in host network mode. For example, if I run single container, I write: docker run --net=host my_image How to do this part --net=host in docker-compose? 回答1: The equivalent in docker-comopose is network_mode: host see the documentation in: https://docs.docker.com/compose/compose-file/ 来源: https://stackoverflow.com/questions/44658101/how-to-run-docker-containers-in-host-network-mode-using-docker-compose

AWS Elastic Beanstalk gives “could not translate host name ”db“ to address” error

一世执手 提交于 2021-02-16 18:59:07
问题 I've been trying to deploy my docker consisted of Django, Postgresql and Nginx. It works fine when I do sudo docker-compose up However when deploy it on AWS EB, it gives me could not translate host name "db" to address: Name or service not known What I've done is I pushed my docker to docker hub using sudo docker build -t myname/dockername -f Dockerfile . and I simply do eb deploy File Structure myproject myproject settings.py urls.py ... Dockerfile Dockerrun.aws.json manage.py requirements