-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Easier contribution experience for frontend-only changes (#114)
* add default vars to environment example in frontend * add thin docker-compose for hot-reload frontend changes
- Loading branch information
1 parent
426340a
commit 805080d
Showing
5 changed files
with
163 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# This compose definition does not build Laminar images, it is intended for local development. | ||
# This file is meant to be used with running the Laminar services manually from each service's directory. | ||
# Refer to CONTRIBUTING.md for more information on how to run the services locally. | ||
name: lmnr | ||
|
||
services: | ||
qdrant: | ||
image: qdrant/qdrant | ||
ports: | ||
- "6333:6333" | ||
- "6334:6334" | ||
volumes: | ||
- type: volume | ||
source: qdrant-data | ||
target: /data | ||
|
||
rabbitmq: | ||
image: rabbitmq | ||
ports: | ||
- "5672:5672" | ||
environment: | ||
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER} | ||
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS} | ||
healthcheck: | ||
test: rabbitmq-diagnostics -q ping | ||
interval: 7s | ||
timeout: 5s | ||
retries: 3 | ||
|
||
clickhouse: | ||
build: | ||
context: ./clickhouse | ||
container_name: clickhouse | ||
hostname: clickhouse | ||
ports: | ||
- "8123:8123" | ||
volumes: | ||
- type: volume | ||
source: clickhouse-data | ||
target: /var/lib/clickhouse/ | ||
- type: volume | ||
source: clickhouse-logs | ||
target: /var/log/clickhouse-server/ | ||
cap_add: | ||
- SYS_NICE | ||
- NET_ADMIN | ||
- IPC_LOCK | ||
ulimits: | ||
nofile: | ||
soft: 262144 | ||
hard: 262144 | ||
|
||
postgres: | ||
image: postgres:16 | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DB: ${POSTGRES_DB} | ||
healthcheck: | ||
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"] | ||
interval: 2s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
volumes: | ||
qdrant-data: | ||
clickhouse-data: | ||
clickhouse-logs: | ||
postgres-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
NEXTAUTH_URL= | ||
NEXTAUTH_SECRET= | ||
NEXTAUTH_URL=http://localhost:3000 | ||
NEXTAUTH_SECRET=next_secret_abc | ||
BACKEND_URL=http://localhost:8000 | ||
NEXT_OTEL_FETCH_DISABLED=1 | ||
SHARED_SECRET_TOKEN=some_secret | ||
|
||
# these must match what you have in your docker-compose-local-dev.yml for postgres | ||
# postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@{host}:5432/${POSTGRES_DB} | ||
DATABASE_URL="postgres://postgres:postgres_passwordabc@localhost:5432/postgres" | ||
|
||
# replace with FULL if you are testing with a full stack | ||
# ENVIRONMENT=FULL | ||
ENVIRONMENT=LITE # this disables runtime dependency on clickhouse | ||
|
||
# for realtime | ||
SUPABASE_JWT_SECRET= | ||
# for auth | ||
AUTH_GITHUB_ID= | ||
AUTH_GITHUB_SECRET= | ||
|
||
AUTH_GOOGLE_ID= | ||
AUTH_GOOGLE_SECRET= | ||
|
||
BACKEND_URL= | ||
|
||
SUPABASE_JWT_SECRET= | ||
|
||
NEXT_OTEL_FETCH_DISABLED=1 | ||
SHARED_SECRET_TOKEN=some_secret | ||
|
||
# for s3 | ||
AWS_REGION= | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
|
||
ENVIRONMENT=FULL | ||
S3_IMGS_BUCKET= |