docker-compose

This site can’t be reached docker-compose

依然范特西╮ 提交于 2021-02-11 02:02:21
问题 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

This site can’t be reached docker-compose

萝らか妹 提交于 2021-02-11 02:01:35
问题 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

This site can’t be reached docker-compose

ε祈祈猫儿з 提交于 2021-02-11 01:59:04
问题 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

Traefik dashboard only on the http port

♀尐吖头ヾ 提交于 2021-02-10 22:17:28
问题 I am trying to expose my docker services (like Heimdall, Plex, Tautulli, etc) on my host machines IP for internal purposes only, so without a domain name. I want each service to be accessible ith its own prefix like 192.168.0.100/heimdall, 192.168.0.100/tautulli, etc. I would like to have the dashboard on a separate port, like 8080, but even after I specify an entry point for 8080 as traefik and set traefik as the entry point for the service it still goes to the port 80 named http. Is there

Using Persistent Host Volume for ElasticSearch with Docker-Compose

99封情书 提交于 2021-02-10 20:12:04
问题 Running Elasticsearch using the below docker-compose.yml is throwing an error Java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes It appears that this is due to trying to mount /usr/share/elasticsearch/data in the Docker container to ./data/elasticsearch/data on the host. Tried setting user: "1000:1000" after identifying the following info, but still getting the same error. the owner/group of /usr/share/elasticsearch/data/nodes to be elasticsearch:elasticsearch the owner

Ignoring files and directories with .dockerignore

荒凉一梦 提交于 2021-02-10 18:19:03
问题 I have a simple .dockerignore file with the following: .git/ .idea/ venv/ My docker-compose.yml file mounts the volume: version: "3" services: frontend: build: . command: ["gunicorn", "--bind", "0.0.0.0:8000", "project.app:create_app()"] env_file: - .env volumes: - .:/frontend ports: - "8000:8000" Perhaps I don't understand the full syntax or intent of the .dockerignore file, but after running docker-compose up --build , .git/ , .idea/ and venv/ end up in my container. I've read up and saw

Django + Mongo + Docker getting pymongo.errors.ServerSelectionTimeoutError

眉间皱痕 提交于 2021-02-10 16:17:16
问题 I've been struggling to get a simple app running using Django, Djongo, Mongo, and Docker Compose. My setup looks like this: docker-compose.yml services: mongodb: image: mongo:latest restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: mongoadmin MONGO_INITDB_DATABASE: django_mongodb_docker ports: - 27017:27017 web: build: ./src restart: always command: python src/manage.py runserver 0.0.0.0:8000 volumes: - .:/code ports: - 8000:8000 links: - mongodb

Access redis locally on docker - docker compose

别来无恙 提交于 2021-02-10 15:48:57
问题 I have two containers, redis and web. I am trying to access the redis container from web. Nothing works. Below is my docker compose file version: '3.7' services: redis: image: redis:alpine restart: always ports: - "6379" volumes: - /private/var/www/redis:/var/www/redis network_mode: host web: build: context: web dockerfile: Dockerfile depends_on: - redis ports: - "127.0.0.1:80:80" - "127.0.0.1:443:443" - "127.0.0.1:22:22" volumes: - /private/var/www/:/var/www/ networks: - docker_web_network

How do I add a table in MySQL using docker-compose

狂风中的少年 提交于 2021-02-10 15:09:05
问题 I am using docker-compose to create a web application using PHP and MySQL.The container that runs MySQL has the database installed however, I am not able to find the table in there. I have made use of a volume that contains the table .sql extension). Below is my docker-compose.yml file `version: '3' services: web_1: container_name: web1_2 build: . ports: - "8081:80" networks: test: ipv4_address: 172.28.0.2 web_2: container_name: web2_2 build: . ports: - "8082:80" networks: test: ipv4_address:

How do I add a table in MySQL using docker-compose

独自空忆成欢 提交于 2021-02-10 15:07:11
问题 I am using docker-compose to create a web application using PHP and MySQL.The container that runs MySQL has the database installed however, I am not able to find the table in there. I have made use of a volume that contains the table .sql extension). Below is my docker-compose.yml file `version: '3' services: web_1: container_name: web1_2 build: . ports: - "8081:80" networks: test: ipv4_address: 172.28.0.2 web_2: container_name: web2_2 build: . ports: - "8082:80" networks: test: ipv4_address: