mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Simplify docker compose setup for new users
This takes out some environment variables that are not needed for new users testing out locally. We also adjusted the port usage so docker-compose will use the same ports that local dev typically uses.
This commit is contained in:
parent
b19115d138
commit
ca7b79d1ba
3 changed files with 13 additions and 8 deletions
|
|
@ -51,15 +51,13 @@ services:
|
|||
- PG_DB=omnivore
|
||||
- PG_PORT=5432
|
||||
- PG_POOL_MAX=20
|
||||
- IMAGE_PROXY_URL=http://localhost:8080
|
||||
- IMAGE_PROXY_URL=http://localhost:9999
|
||||
- IMAGE_PROXY_SECRET=some-secret
|
||||
- JWT_SECRET=some_secret
|
||||
- SSO_JWT_SECRET=some_sso_secret
|
||||
- CLIENT_URL=http://localhost:3000
|
||||
- GATEWAY_URL=http://localhost:4000/api
|
||||
- GATEWAY_URL=http://localhost:8080/api
|
||||
- PUPPETEER_TASK_HANDLER_URL=http://localhost:9090/
|
||||
- PREVIEW_IMAGE_WRAPPER_ID='selected_highlight_wrapper'
|
||||
- PREVIEW_GENERATION_SERVICE_URL=http://localhost:8080/preview
|
||||
- REMINDER_TASK_HANDLER_URL=/svc/reminders/trigger
|
||||
depends_on:
|
||||
migrate:
|
||||
|
|
@ -71,12 +69,17 @@ services:
|
|||
dockerfile: ./packages/web/Dockerfile
|
||||
args:
|
||||
- APP_ENV=prod
|
||||
- BASE_URL=http://localhost:8080
|
||||
- BASE_URL=http://localhost:3000
|
||||
- SERVER_BASE_URL=http://localhost:4000
|
||||
- HIGHLIGHTS_BASE_URL=http://localhost:8080
|
||||
- HIGHLIGHTS_BASE_URL=http://localhost:3000
|
||||
container_name: "omnivore-web"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "3000:8080"
|
||||
environment:
|
||||
- NEXT_PUBLIC_APP_ENV=prod
|
||||
- NEXT_PUBLIC_BASE_URL=http://localhost:3000
|
||||
- NEXT_PUBLIC_SERVER_BASE_URL=http://localhost:4000
|
||||
- NEXT_PUBLIC_HIGHLIGHTS_BASE_URL=http://localhost:3000
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
|
|
|
|||
|
|
@ -95,6 +95,8 @@ const nullableEnvVars = [
|
|||
'PUPPETEER_QUEUE_LOCATION',
|
||||
'PUPPETEER_QUEUE_NAME',
|
||||
'PUPPETEER_TASK_HANDLER_URL',
|
||||
'PREVIEW_IMAGE_WRAPPER_ID',
|
||||
'PREVIEW_GENERATION_SERVICE_URL',
|
||||
'GCS_UPLOAD_SA_KEY_FILE_PATH',
|
||||
'GAUTH_IOS_CLIENT_ID',
|
||||
'GAUTH_CLIENT_ID',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ ARG SERVER_BASE_URL
|
|||
ARG HIGHLIGHTS_BASE_URL
|
||||
ENV NEXT_PUBLIC_APP_ENV=$APP_ENV
|
||||
ENV NEXT_PUBLIC_BASE_URL=$BASE_URL
|
||||
ENV NEXT_PUBLIC_SERVER_BASE_URL=$BASE_URL
|
||||
ENV NEXT_PUBLIC_SERVER_BASE_URL=$SERVER_BASE_URL
|
||||
ENV NEXT_PUBLIC_HIGHLIGHTS_BASE_URL=$HIGHLIGHTS_BASE_URL
|
||||
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Reference in a new issue