docker-compose

TimeoutError: [Errno 110] Connect call failed when trying to connect to redis service in docker

偶尔善良 提交于 2021-02-11 12:25:38
问题 I'm dockerizing a web application that uses Django Channels for websocket functionality. It depends on redis. I'm having trouble getting the redis portion of the application to work correctly. I've tried to stick to this redis/compose guide. docker-compose.yml version: "3" services: db: image: mysql:latest volumes: - "./.mysql-data/db:/var/lib/mysql" restart: always ports: - 3306:3306 environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: database MYSQL_USER: user MYSQL_PASSWORD:

How does “volumes” override the docker image's original files with docker-compose?

倖福魔咒の 提交于 2021-02-11 12:11:55
问题 Let's use this docker-compose.yml : version: '2' services: db: image: mysql:5.7 volumes: - ./mysql:/var/lib/mysql # <- important restart: always environment: MYSQL_ROOT_PASSWORD: somewordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: depends_on: - db image: wordpress:latest volumes: - ./wp:/var/www/html # <- important ports: - "8000:80" restart: always environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD:

How does “volumes” override the docker image's original files with docker-compose?

笑着哭i 提交于 2021-02-11 12:09:13
问题 Let's use this docker-compose.yml : version: '2' services: db: image: mysql:5.7 volumes: - ./mysql:/var/lib/mysql # <- important restart: always environment: MYSQL_ROOT_PASSWORD: somewordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: depends_on: - db image: wordpress:latest volumes: - ./wp:/var/www/html # <- important ports: - "8000:80" restart: always environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD:

How to link two containers using docker-compose

筅森魡賤 提交于 2021-02-11 09:57:14
问题 At the moment I have two containers which I build from an image and then link the two: For example: #mysql docker build -t my/mysql docker-mysql docker run -p 3306:3306 --name mysql -d my/mysql:latest #webapp docker build -t my/tomcat:7.0 tomcat/7.0 docker run -d --link mysql --name tomcat7 my/tomcat:7.0 Since I'm linking the webapp container with mysql container, the webapp container gets a MYSQL_PORT_3306_TCP_ADDR environment variable created. I use this environment variable to then connect

How to link two containers using docker-compose

天涯浪子 提交于 2021-02-11 09:56:50
问题 At the moment I have two containers which I build from an image and then link the two: For example: #mysql docker build -t my/mysql docker-mysql docker run -p 3306:3306 --name mysql -d my/mysql:latest #webapp docker build -t my/tomcat:7.0 tomcat/7.0 docker run -d --link mysql --name tomcat7 my/tomcat:7.0 Since I'm linking the webapp container with mysql container, the webapp container gets a MYSQL_PORT_3306_TCP_ADDR environment variable created. I use this environment variable to then connect

How to link two containers using docker-compose

浪尽此生 提交于 2021-02-11 09:56:41
问题 At the moment I have two containers which I build from an image and then link the two: For example: #mysql docker build -t my/mysql docker-mysql docker run -p 3306:3306 --name mysql -d my/mysql:latest #webapp docker build -t my/tomcat:7.0 tomcat/7.0 docker run -d --link mysql --name tomcat7 my/tomcat:7.0 Since I'm linking the webapp container with mysql container, the webapp container gets a MYSQL_PORT_3306_TCP_ADDR environment variable created. I use this environment variable to then connect

RabbitMQ client throwing error while running docker-compose up command

蹲街弑〆低调 提交于 2021-02-11 04:29:53
问题 I am trying to run docker-compose with two .net core console applications having dependency of rabbitMQ, I am using Docker with Windows. I have added to console application, as described on RabbitMQ official docs https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html Outside of both applications I have added docker-compose.yml Folder structure: 1. Send Send.cs (as it is in RabbitMQ docs) Send.csproj Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:2.2 as build-env WORKDIR /app # Copy

RabbitMQ client throwing error while running docker-compose up command

会有一股神秘感。 提交于 2021-02-11 04:27:19
问题 I am trying to run docker-compose with two .net core console applications having dependency of rabbitMQ, I am using Docker with Windows. I have added to console application, as described on RabbitMQ official docs https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html Outside of both applications I have added docker-compose.yml Folder structure: 1. Send Send.cs (as it is in RabbitMQ docs) Send.csproj Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:2.2 as build-env WORKDIR /app # Copy

RabbitMQ client throwing error while running docker-compose up command

主宰稳场 提交于 2021-02-11 04:25:25
问题 I am trying to run docker-compose with two .net core console applications having dependency of rabbitMQ, I am using Docker with Windows. I have added to console application, as described on RabbitMQ official docs https://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html Outside of both applications I have added docker-compose.yml Folder structure: 1. Send Send.cs (as it is in RabbitMQ docs) Send.csproj Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:2.2 as build-env WORKDIR /app # Copy

This site can’t be reached docker-compose

强颜欢笑 提交于 2021-02-11 02:10:18
问题 I am trying to use docker-compose for react-typescript application with webpack-dev-server below is my Dockerfile FROM node:lts-slim RUN mkdir -p /usr/src/app WORKDIR /usr/src/app EXPOSE 3000 CMD [ "npm", "start" ] "start": "webpack-dev-server --port 3000" this package.json line docker-compose.yml version: "3" services: frontend: container_name: awesome_web build: context: ./client dockerfile: Dockerfile image: webpack ports: - "3000:3000" volumes: - ./client:/usr/src/app I executed command