Run the content-fetch service in docker compose

This commit is contained in:
Jackson Harper
2022-06-17 14:19:06 -07:00
parent abe0b4c65e
commit 58814e1854
2 changed files with 8 additions and 3 deletions

View File

@ -125,10 +125,10 @@ services:
content-fetch:
build:
context: .
dockerfile: ./packages/puppeteer-parse/Dockerfile
dockerfile: ./packages/content-fetch/Dockerfile
container_name: "omnivore-content-fetch"
expose:
- 9090
ports:
- "9090:9090"
environment:
- JWT_SECRET=some_secret
- REST_BACKEND_ENDPOINT=http://api:8080/api

View File

@ -1,3 +1,4 @@
FROM node:14.18-alpine
# Installs latest Chromium (92) package.
@ -9,6 +10,10 @@ RUN apk add --no-cache \
ca-certificates \
ttf-freefont \
nodejs \
gcc \
g++ \
python3 \
make \
yarn
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.