feat(prod): co-deploy postgres and minio in production compose
This commit is contained in:
parent
b8d14d8f9d
commit
6898649898
3 changed files with 87 additions and 11 deletions
|
|
@ -9,22 +9,27 @@ APP_URL=https://karbe.cosmolan.fr
|
|||
NEXTAUTH_SECRET=replace_with_random_secret
|
||||
AUTH_SECRET=replace_with_random_secret
|
||||
|
||||
# Database (managed PostgreSQL recommended)
|
||||
DATABASE_URL=postgresql://user:password@db-host:5432/karbe?schema=public
|
||||
# Co-deployed PostgreSQL (docker-compose.prod.yml)
|
||||
POSTGRES_DB=karbe
|
||||
POSTGRES_USER=karbe
|
||||
POSTGRES_PASSWORD=replace_with_strong_password
|
||||
DATABASE_URL=postgresql://karbe:replace_with_strong_password@postgres:5432/karbe?schema=public
|
||||
|
||||
# Stripe TEST
|
||||
STRIPE_SECRET_KEY=sk_test_xxx
|
||||
STRIPE_WEBHOOK_SECRET=whsec_xxx
|
||||
STRIPE_OWNER_SUBSCRIPTION_PRICE_ID=price_xxx
|
||||
|
||||
# Storage S3 / MinIO
|
||||
S3_ENDPOINT=https://s3.example.com
|
||||
S3_REGION=eu-west-3
|
||||
# Co-deployed MinIO (docker-compose.prod.yml)
|
||||
MINIO_ROOT_USER=karbe
|
||||
MINIO_ROOT_PASSWORD=replace_with_strong_password
|
||||
S3_ENDPOINT=http://minio:9000
|
||||
S3_REGION=us-east-1
|
||||
S3_BUCKET=karbe-medias
|
||||
S3_ACCESS_KEY_ID=replace_me
|
||||
S3_SECRET_ACCESS_KEY=replace_me
|
||||
S3_PUBLIC_URL=https://cdn.example.com/karbe-medias
|
||||
S3_FORCE_PATH_STYLE=false
|
||||
S3_ACCESS_KEY_ID=karbe
|
||||
S3_SECRET_ACCESS_KEY=replace_with_strong_password
|
||||
S3_PUBLIC_URL=
|
||||
S3_FORCE_PATH_STYLE=true
|
||||
|
||||
# Recommended for stable multi-instance deploys
|
||||
NEXT_SERVER_ACTIONS_ENCRYPTION_KEY=replace_with_base64_32_bytes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue