mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix content-fetch on docker compose
This commit is contained in:
parent
58814e1854
commit
ddaac82653
4 changed files with 14 additions and 7 deletions
|
|
@ -93,7 +93,7 @@ services:
|
|||
- SSO_JWT_SECRET=some_sso_secret
|
||||
- CLIENT_URL=http://localhost:3000
|
||||
- GATEWAY_URL=http://localhost:8080/api
|
||||
- PUPPETEER_TASK_HANDLER_URL=http://content-fetch:9090/
|
||||
- PUPPETEER_TASK_HANDLER_URL=http://content-fetch:8080/?token=some_token
|
||||
- REMINDER_TASK_HANDLER_URL=/svc/reminders/trigger
|
||||
depends_on:
|
||||
migrate:
|
||||
|
|
@ -127,10 +127,11 @@ services:
|
|||
context: .
|
||||
dockerfile: ./packages/content-fetch/Dockerfile
|
||||
container_name: "omnivore-content-fetch"
|
||||
ports:
|
||||
- "9090:9090"
|
||||
expose:
|
||||
- 9090
|
||||
environment:
|
||||
- JWT_SECRET=some_secret
|
||||
- VERIFICATION_TOKEN=some_token
|
||||
- REST_BACKEND_ENDPOINT=http://api:8080/api
|
||||
depends_on:
|
||||
api:
|
||||
|
|
|
|||
|
|
@ -24,4 +24,4 @@ GCS_UPLOAD_SA_KEY_FILE_PATH=
|
|||
TWITTER_BEARER_TOKEN=
|
||||
PREVIEW_IMAGE_WRAPPER_ID='selected_highlight_wrapper'
|
||||
REMINDER_TASK_HANDLER_URL=
|
||||
ELASTIC_URL=http://localhost:9200
|
||||
ELASTIC_URL=http://localhost:9200
|
||||
|
|
@ -36,11 +36,16 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
|||
ENV CHROMIUM_PATH /usr/bin/chromium-browser
|
||||
ENV LAUNCH_HEADLESS=true
|
||||
|
||||
COPY . /app/
|
||||
WORKDIR app
|
||||
COPY package.json .
|
||||
COPY yarn.lock .
|
||||
COPY tsconfig.json .
|
||||
COPY .prettierrc .
|
||||
COPY .eslintrc .
|
||||
|
||||
COPY /packages/content-fetch ./packages/content-fetch
|
||||
|
||||
RUN yarn install --pure-lockfile
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["yarn", "start"]
|
||||
CMD ["yarn", "workspace", "@omnivore/content-fetch", "start"]
|
||||
|
|
@ -10,6 +10,7 @@ const os = require('os');
|
|||
exports.mediumHandler = {
|
||||
|
||||
shouldPrehandle: (url, env) => {
|
||||
const u = new URL(url);
|
||||
return u.hostname.endsWith('medium.com')
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue