Comments (10)
@karl-johan-grahn created PR now for web app exposed externally
from dispatch-docker.
@sarahcthekey , it will be possible to detail how you built the image locally?
from dispatch-docker.
@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.
@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.
@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.
@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.
@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.
@B3lak0r I was also getting unauthorised... had to post on the Dispatch github repo about this, answer which hopefully should help:
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.
It saved my time. Thanks
from dispatch-docker.
@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)
- Link 404's in .env.example HOT 2
- Fresh installation is failing with missing relation "dispatch_core.organization" HOT 6
- install.sh failing HOT 14
- fatal: password authentication failed for user HOT 5
- 2400MB of Memory in Docker is not enough to run install.sh HOT 2
- Running install.sh gives undefined table error : dispatch_user_organization HOT 2
- Building core service failing in docker-compose HOT 8
- Bug in install.sh relation "dispatch_core.organization" does not exist HOT 2
- Challenge setting up Slack integration HOT 5
- How to define dispatch organization & project names for Slack plug-in HOT 2
- Docker container won't build on aarch64 HOT 3
- Remove core or clarify how it works HOT 5
- Requesting an Open Source License file in this repository
- Docker Compose version requirement failing for 2.0.0+ HOT 2
- [just a report] unable to build with docker-compose v1 HOT 2
- basic ./install.sh crashes building container on step 49/49 HOT 4
- AttributeError: 'int' object has no attribute 'upper' HOT 4
- cant able to start dispatch HOT 1
- Basic Install Failing to Build "Core" HOT 10
- Docs bug - not allowed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dispatch-docker.