Coder Social home page Coder Social logo

Comments (10)

sarahcthekey avatar sarahcthekey commented on September 17, 2024 2

@karl-johan-grahn created PR now for web app exposed externally

from dispatch-docker.

Behelit1582 avatar Behelit1582 commented on September 17, 2024

@sarahcthekey , it will be possible to detail how you built the image locally?

from dispatch-docker.

sarahcthekey avatar sarahcthekey commented on September 17, 2024

@B3lak0r I've found the missing piece of the puzzle...

Append --host=0.0.0.0 to the docker-compose.yml line number 26, so it should read like this:

CMD ["server", "start", "dispatch.main:app", "--host=0.0.0.0"]

from dispatch-docker.

Behelit1582 avatar Behelit1582 commented on September 17, 2024

@sarahcthekey but on my docker-compose.yml what I actually have line 26 is the volume detailed:

version: "3.4"
x-restart-policy: &restart_policy
restart: unless-stopped
x-dispatch-defaults: &dispatch_defaults
<<: *restart_policy
env_file:

  • .env
    build:
    context: https://github.com/Netflix/dispatch.git#develop:.
    image: dispatch-local
    depends_on:
  • postgres
    env_file:
  • .env
    services:
    postgres:
    <<: *restart_policy
    env_file:
  • .env
    image: "postgres:9.6"
    ports:
  • "5432:5432"
    volumes:
  • "dispatch-postgres:/var/lib/postgresql/data"
    env_file: ./.env
    web:
    <<: *dispatch_defaults
    command: ["server", "start", "dispatch.main:app"]
    ports:
  • "8000:8000"
    dispatch-scheduler:
    <<: *dispatch_defaults
    command: ["scheduler", "start"]
    ports:
  • "8001:8000"
    volumes:
    dispatch-postgres:
    external: true

Could you share yours then ? sorry to ask for that

from dispatch-docker.

sarahcthekey avatar sarahcthekey commented on September 17, 2024

@B3lak0r Sure no problem, here's the full docker-compose.yml file:

version: "3.4"
x-restart-policy: &restart_policy
  restart: unless-stopped
services:
  postgres:
    <<: *restart_policy
    env_file:
      - .env
    image: "postgres:9.6"
    ports:
      - "5432:5432"
    volumes:
      - "dispatch-postgres:/var/lib/postgresql/data"
  web:
    <<: *restart_policy
    build:
      # Pro-tip: point this to a relative directory containing the Dispatch
      # project root to pick up changes from your dev environment
      # (e.g., ../dispatch-root)
      context: https://github.com/Netflix/dispatch.git#develop:.
    image: dispatch-local-web
    depends_on:
      - postgres
    env_file:
      - .env
    command: ["server", "start", "dispatch.main:app", "--host=0.0.0.0"]
    ports:
    - "80:8000"
  scheduler:
    <<: *restart_policy
    build:
      # Pro-tip: point this to a relative directory containing the Dispatch
      # project root to pick up changes from your dev environment
      # (e.g., ../dispatch-root)
      context: https://github.com/Netflix/dispatch.git#develop:.
      args:
        DISPATCH_LIGHT_BUILD: "1"
    image: dispatch-local-scheduler
    depends_on:
      - postgres
    env_file:
      - .env
    command: ["scheduler", "start"]
    ports:
    - "8000:8000"
volumes:
  dispatch-postgres:
    external: true

from dispatch-docker.

sarahcthekey avatar sarahcthekey commented on September 17, 2024

@B3lak0r note I also changed the port forward on the web container to 80:8000 as the scheduler is listening on 8000 as well, didn't want a port conflict.

Ideally need to build in an SSL front end (load balancer for example) for it as well to be completely secure.

from dispatch-docker.

Behelit1582 avatar Behelit1582 commented on September 17, 2024

@sarahcthekey were you able to get things working without getting any 401 or 500 error code when trying to create / save something, btw the google plugins values is supposed to be added into the .env
with or without quotation " " marks?

from dispatch-docker.

sarahcthekey avatar sarahcthekey commented on September 17, 2024

@B3lak0r I was also getting unauthorised... had to post on the Dispatch github repo about this, answer which hopefully should help:

Netflix/dispatch#95 (comment)

However, I'm now getting another different error, 'undefined' as I try to add anything to the web UI. I'm working through that today.

from dispatch-docker.

kendung avatar kendung commented on September 17, 2024

It saved my time. Thanks

from dispatch-docker.

karl-johan-grahn avatar karl-johan-grahn commented on September 17, 2024

@kendung @sarahcthekey Can you open a PR so other can benefit from your solution to get the UI working? I've been reading the thread but not got the UI running myself.

from dispatch-docker.

Related Issues (20)

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.