update docker-compose-test
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
postgres-test:
|
postgres-test:
|
||||||
image: "postgres:12.8"
|
image: "ankane/pgvector:v0.5.1"
|
||||||
container_name: "omnivore-postgres-test"
|
container_name: "omnivore-postgres-test"
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=postgres
|
- POSTGRES_USER=postgres
|
||||||
@ -16,6 +16,22 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- 5432
|
- 5432
|
||||||
|
|
||||||
|
migrate-test:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./packages/db/Dockerfile
|
||||||
|
container_name: "omnivore-migrate-test"
|
||||||
|
command: '/bin/sh ./packages/db/setup.sh' # Also create a demo user with email: demo@omnivore.app, password: demo
|
||||||
|
environment:
|
||||||
|
- PGPASSWORD=postgres
|
||||||
|
- PG_HOST=postgres-test
|
||||||
|
- PG_USER=postgres
|
||||||
|
- PG_PASSWORD=postgres
|
||||||
|
- PG_DB=omnivore_test
|
||||||
|
depends_on:
|
||||||
|
postgres-test:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
api-test:
|
api-test:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@ -29,14 +45,12 @@ services:
|
|||||||
- PG_DB=omnivore_test
|
- PG_DB=omnivore_test
|
||||||
- PG_PORT=5432
|
- PG_PORT=5432
|
||||||
- PG_POOL_MAX=20
|
- PG_POOL_MAX=20
|
||||||
- IMAGE_PROXY_URL=http://localhost:9999
|
|
||||||
- IMAGE_PROXY_SECRET=some-secret
|
- IMAGE_PROXY_SECRET=some-secret
|
||||||
- JWT_SECRET=some_secret
|
- JWT_SECRET=some_secret
|
||||||
- SSO_JWT_SECRET=some_sso_secret
|
- SSO_JWT_SECRET=some_sso_secret
|
||||||
- CLIENT_URL=http://localhost:3000
|
- CLIENT_URL=http://localhost:3000
|
||||||
- GATEWAY_URL=http://localhost:8080/api
|
- GATEWAY_URL=http://localhost:8080/api
|
||||||
- CONTENT_FETCH_URL=http://localhost:9090/
|
- CONTENT_FETCH_URL=http://localhost:9090/
|
||||||
- REMINDER_TASK_HANDLER_URL=/svc/reminders/trigger
|
|
||||||
- BOOKMARKLET_JWT_SECRET=some_bookmarklet_secret
|
- BOOKMARKLET_JWT_SECRET=some_bookmarklet_secret
|
||||||
- BOOKMARKLET_VERSION=1.0.0
|
- BOOKMARKLET_VERSION=1.0.0
|
||||||
- PREVIEW_IMAGE_WRAPPER_ID='selected_highlight_wrapper'
|
- PREVIEW_IMAGE_WRAPPER_ID='selected_highlight_wrapper'
|
||||||
@ -46,5 +60,5 @@ services:
|
|||||||
- SEGMENT_WRITE_KEY='test'
|
- SEGMENT_WRITE_KEY='test'
|
||||||
- PUBSUB_VERIFICATION_TOKEN='123456'
|
- PUBSUB_VERIFICATION_TOKEN='123456'
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres-test:
|
migrate-test:
|
||||||
condition: service_healthy
|
condition: service_completed_successfully
|
||||||
|
|||||||
@ -8,6 +8,8 @@ COPY tsconfig.json .
|
|||||||
|
|
||||||
COPY /packages/readabilityjs/package.json ./packages/readabilityjs/package.json
|
COPY /packages/readabilityjs/package.json ./packages/readabilityjs/package.json
|
||||||
COPY /packages/api/package.json ./packages/api/package.json
|
COPY /packages/api/package.json ./packages/api/package.json
|
||||||
|
COPY /packages/text-to-speech/package.json ./packages/text-to-speech/package.json
|
||||||
|
COPY /packages/content-handler/package.json ./packages/content-handler/package.json
|
||||||
|
|
||||||
RUN apk --no-cache --virtual build-dependencies add \
|
RUN apk --no-cache --virtual build-dependencies add \
|
||||||
python3 \
|
python3 \
|
||||||
@ -18,8 +20,9 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
|||||||
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
ADD /packages/db ./packages/db
|
COPY /packages/readabilityjs ./packages/readabilityjs
|
||||||
ADD /packages/readabilityjs ./packages/readabilityjs
|
COPY /packages/api ./packages/api
|
||||||
ADD /packages/api ./packages/api
|
COPY /packages/text-to-speech ./packages/text-to-speech
|
||||||
|
COPY /packages/content-handler ./packages/content-handler
|
||||||
|
|
||||||
CMD ["yarn", "workspace", "@omnivore/api", "test"]
|
CMD ["yarn", "workspace", "@omnivore/api", "test"]
|
||||||
|
|||||||
Reference in New Issue
Block a user