Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topic/add supabase to docker compose yml #594

Merged
merged 6 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example → .env.firebase.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ TESTDB_HOST=testdb
FLASHSENSE_API_URL=http://flashsense.api.url.example/api
SYSTEM_EMAIL=
SENDGRID_API_KEY=
AUTH_SERVICE=FIREBASE
102 changes: 102 additions & 0 deletions .env.supabase.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
###### Threatconnectome

WEBUI_URL=http://localhost
DB_USER=postgres
DB_PASSWORD=
DB_HOST=db
DB_PORT=5432
DB_SCHEMA=postgres
TESTDB_HOST=testdb
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testdbが
test-threatconnectome-db
になりませんか?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コンテナ名をtest-threatconnectome-dbではなくtestdbに修正しました。
環境変数の方はtestdbのままにしています。

AUTH_SERVICE=SUPABASE

###### Supabase

############
# Secrets
# YOU MUST CHANGE THESE BEFORE GOING INTO PRODUCTION
############

SUPABASE_DB_PASSWORD=
JWT_SECRET=
ANON_KEY=
SERVICE_ROLE_KEY=
DASHBOARD_USERNAME=
DASHBOARD_PASSWORD=


############
# Supabase Database - You can change these to any PostgreSQL database that has logical replication enabled.
############

POSTGRES_HOST=db
POSTGRES_DB=postgres
POSTGRES_PORT=5431
# default user is postgres


############
# API Proxy - Configuration for the Kong Reverse proxy.
############

KONG_HTTP_PORT=8000
KONG_HTTPS_PORT=8443


############
# Auth - Configuration for the GoTrue authentication server.
############

## General
SITE_URL=http://localhost:3000
ADDITIONAL_REDIRECT_URLS=
JWT_EXPIRY=3600
DISABLE_SIGNUP=false
API_EXTERNAL_URL=http://localhost:8000

## Mailer Config
MAILER_URLPATHS_CONFIRMATION="/auth/v1/verify"
MAILER_URLPATHS_INVITE="/auth/v1/verify"
MAILER_URLPATHS_RECOVERY="/auth/v1/verify"
MAILER_URLPATHS_EMAIL_CHANGE="/auth/v1/verify"

## Email auth
ENABLE_EMAIL_SIGNUP=true
ENABLE_EMAIL_AUTOCONFIRM=false
[email protected]
SMTP_HOST=supabase-mail
SMTP_PORT=2500
SMTP_USER=fake_mail_user
SMTP_PASS=fake_mail_password
SMTP_SENDER_NAME=fake_sender
ENABLE_ANONYMOUS_USERS=false

## Phone auth
ENABLE_PHONE_SIGNUP=true
ENABLE_PHONE_AUTOCONFIRM=true

############
# Studio - Configuration for the Dashboard
############

STUDIO_DEFAULT_ORGANIZATION=Default Organization
STUDIO_DEFAULT_PROJECT=Default Project

STUDIO_PORT=3000
# replace if you intend to use Studio outside of localhost
SUPABASE_PUBLIC_URL=http://localhost:8000

# Enable webp support
IMGPROXY_ENABLE_WEBP_DETECTION=true

# Add your OpenAI API key to enable SQL Editor Assistant
OPENAI_API_KEY=your-super-secret-and-long-logflare-key


############
# Logs - Configuration for Logflare
# Please refer to https://supabase.com/docs/reference/self-hosting-analytics/introduction
############

# Change vector.toml sinks to reflect this change
LOGFLARE_API_KEY=

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cd threatconnectome
```

> To stop a running service:
>
>
> ```bash
> ./demo_stop.sh
> ```
Expand Down Expand Up @@ -77,10 +77,10 @@ git clone https://github.com/nttcom/threatconnectome.git

### Set up environment variables

Copy .env.example, change it to .env and edit the contents
Copy .env.firebase.example, change it to .env and edit the contents

```bash
cp .env.example .env
cp .env.firebase.example .env
vi .env # change default values
```

Expand Down
Loading