Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker error #493

Open
AlexEAA opened this issue Feb 20, 2020 · 2 comments
Open

Docker error #493

AlexEAA opened this issue Feb 20, 2020 · 2 comments

Comments

@AlexEAA
Copy link

AlexEAA commented Feb 20, 2020

trying to collect docker

/config/docker/dev/Dockerfile-dev

Step 21/28 : COPY mix.exs mix.lock ./
COPY failed: stat /var/lib/docker/tmp/docker-builder074448497/mix.exs: no such file or directory

@AlexEAA
Copy link
Author

AlexEAA commented Feb 21, 2020

As a result, I chose an image, can someone help make docker compose I don’t quite understand how all these modules interact

seoinetru/eccomerce:latest

@AlexEAA
Copy link
Author

AlexEAA commented Feb 21, 2020

version: '2'
services:
  eccomerce:
    image: seoinetru/eccomerce:latest
    container_name: eccomerce
    networks:
      - frontend
      - backend
    expose:
      - 4000   
    #volumes:
      #- /root/compose/mysite/avia:/avia-backend/
    labels:
      - "traefik.backend=eccomerce"
      - "traefik.docker.network=frontend"
      - "traefik.enable=true"
      - "traefik.frontend.rule=Host:domain.ru,www.domain.ru"
      - "traefik.port=4000"
    environment:
      - ENV ELASTIC_HOST elasticsearch
      - ENV DB_HOST db  
    ports:
      #- "4000:4000"
      - "3000:3000"
    depends_on:
      - db
      - elasticsearch
      - kibana
    links:
      - db
      - elasticsearch
      - kibana
  db:
    image: postgres:10
    container_name: db
    networks:
      - backend  
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=snitch_dev
      
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
    container_name: elasticsearch
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536
    networks:
      - backend      
    ports:
      - "9200:9200"
      
  kibana:
    image: docker.elastic.co/kibana/kibana:6.3.2
    container_name: kibana
    ports:
      - "5601:5601"
    networks:
      - backend    
     
     
     
networks:
  frontend:
    external:
      name: frontend
  backend:
    external:
      name: backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant