Git Product home page Git Product logo

Comments (2)

kamal2222ahmed avatar kamal2222ahmed commented on August 24, 2024

I added the platform:

version: '3.0'
services:
  websu-api:
    image: samos123/websu-api:latest
    platform: linux/amd64
    ports:
    - "8000:8000"
    environment:
    - "LIGHTHOUSE_SERVER=lighthouse-server:50051"
    - "MONGO_URI=mongodb://mongo:27017"
    - "SERVE_FRONTEND=false"
    - "AUTH=firebase"
    - "GOOGLE_APPLICATION_CREDENTIALS=/firebase-sa.json"
    volumes:
      - ./firebase-sa.json:/firebase-sa.json
    links:
    - mongo
    - lighthouse-server
  lighthouse-server:
    image: samos123/lighthouse-server-docker:latest
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    ports:
    - "127.0.0.1:50051:50051"
  mongo:
    image: mongo:4
    ports:
    - "127.0.0.1:27017:27017"

still could not bring up the web service on 8000

NAME                        IMAGE                                      COMMAND                  SERVICE             CREATED             STATUS              PORTS
websu-lighthouse-server-1   samos123/lighthouse-server-docker:latest   "/websu/lighthouse-s…"   lighthouse-server   23 seconds ago      Up 21 seconds       127.0.0.1:50051->50051/tcp
websu-mongo-1               mongo:4                                    "docker-entrypoint.s…"   mongo               23 seconds ago      Up 21 seconds       127.0.0.1:27017->27017/tcp
websu-websu-api-1           samos123/websu-api:latest                  "/websu/websu-api"       websu-api           23 seconds ago      Up 20 seconds       0.0.0.0:8000->8000/tcp, :::8000->8000/tcp
➜  websu git:(master) ✗ curl -d '{"url": "https://www.google.com"}' localhost:8000/
curl: (7) Failed to connect to localhost port 8000 after 0 ms: Couldn't connect to server

from websu.

kamal2222ahmed avatar kamal2222ahmed commented on August 24, 2024

perhaps, I should try one of the branches?

origin/HEAD -> origin/master
  origin/authentication
  origin/cloudbuild
  origin/email
  origin/lh-9.4.0
  origin/locations
  origin/master
  origin/pagination
  origin/premium
  origin/scheduled-reports

from websu.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.