This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
/
docker-compose.yml
148 lines (137 loc) · 4.44 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: "3.6"
services:
# nextjs:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: web
# restart: always
# volumes:
# - ./:/app
# - /app/node_modules
# - /app/.next
# ports:
# - 0.0.0.0:3001:3001
# - 3000:3000
# depends_on:
# - kong
#
# Supabase
#
kong:
container_name: kong-api-gateaway
build:
context: ./.supabase/kong
environment:
KONG_DECLARATIVE_CONFIG: /var/lib/kong/kong.yml
KONG_DNS_ORDER: LAST,A,CNAME
KONG_PLUGINS: request-transformer,cors,key-auth
ports:
- 8000:8000/tcp
auth:
container_name: auth-service
image: supabase/gotrue:v2.2.12
depends_on:
- db
- mail
restart: on-failure
environment:
GOTRUE_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
GOTRUE_JWT_AUD: authenticated
GOTRUE_JWT_EXP: 3600
GOTRUE_JWT_DEFAULT_GROUP_NAME: authenticated
GOTRUE_DB_DRIVER: postgres
GOTRUE_DB_DATABASE_URL: postgres://postgres:postgres@db:5432/postgres?sslmode=disable&search_path=auth
API_EXTERNAL_URL: http://localhost:8000
GOTRUE_API_HOST: 0.0.0.0
GOTRUE_API_PORT: 9999
GOTRUE_SITE_URL: http://localhost:3000
GOTRUE_DISABLE_SIGNUP: 'false'
GOTRUE_SMTP_HOST: mail
GOTRUE_SMTP_PORT: 2500
GOTRUE_SMTP_USER: GOTRUE_SMTP_USER
GOTRUE_SMTP_PASS: GOTRUE_SMTP_PASS
GOTRUE_SMTP_ADMIN_EMAIL: admin@email.com
GOTRUE_MAILER_SUBJECTS_CONFIRMATION: Confirm Your Signup
GOTRUE_MAILER_SUBJECTS_INVITE: You have been invited
GOTRUE_MAILER_SUBJECTS_MAGIC_LINK: Your Magic Link
GOTRUE_MAILER_SUBJECTS_RECOVERY: Reset Your Password
GOTRUE_EXTERNAL_EMAIL_ENABLED: 'true'
GOTRUE_EXTERNAL_PHONE_ENABLED: 'true'
GOTRUE_MAILER_URLPATHS_CONFIRMATION: /confirm-email
GOTRUE_MAILER_URLPATHS_INVITE: /join-beta-testing
GOTRUE_MAILER_URLPATHS_RECOVERY: /forgot-password
GOTRUE_MAILER_AUTOCONFIRM: 'true'
GOTRUE_SMS_AUTOCONFIRM: 'true'
GOTRUE_LOG_LEVEL: DEBUG
GOTRUE_OPERATOR_TOKEN: super-secret-operator-token
rest:
container_name: postgrest-service
image: postgrest/postgrest:v9.0.0
depends_on:
- db
restart: always
environment:
PGRST_DB_URI: postgres://postgres:postgres@db:5432/postgres
PGRST_DB_SCHEMA: public, storage
PGRST_DB_ANON_ROLE: anon
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
realtime:
container_name: realtime-service
image: supabase/realtime:v0.19.4
depends_on:
- db
restart: on-failure
environment:
PORT: 4000
DB_HOST: db
DB_USER: postgres
DB_PORT: 5432
DB_PASSWORD: postgres
HOSTNAME: localhost
DB_NAME: postgres
DB_SSL: 'false'
SLOT_NAME: supabase_realtime
TEMPORARY_SLOT: 'true'
JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
SECURE_CHANNELS: 'false'
REPLICATION_MODE: 'RLS'
REPLICATION_POLL_INTERVAL: 100
storage:
container_name: storage-service
image: supabase/storage-api:v0.10.0
depends_on:
- db
- rest
restart: on-failure
environment:
ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiJ9.ZopqoUt20nEV9cklpv9e3yw3PVyZLmKs5qLD6nGL1SI
SERVICE_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIn0.M2d2z4SFn5C7HlJlaSLfrzuYim9nbY_XI40uWFN3hEE
POSTGREST_URL: http://rest:3000
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
PGOPTIONS: "-c search_path=storage"
STORAGE_BACKEND: file
FILE_SIZE_LIMIT: 52428800
FILE_STORAGE_BACKEND_PATH: /var/data/storage
TENANT_ID: stub
REGION: stub
GLOBAL_S3_BUCKET: stub
# REGION: us-east-1 # region where your bucket is located
# GLOBAL_S3_BUCKET: supa-storage-testing # name of s3 bucket where you want to store objects
# AWS_ACCESS_KEY_ID: replace-with-your-aws-key
# AWS_SECRET_ACCESS_KEY: replace-with-your-aws-secret
db:
container_name: postgres
build:
context: ./.supabase/postgres
ports:
- "5432:5432"
command: postgres -c config_file=/etc/postgresql/postgresql.conf
environment:
POSTGRES_PASSWORD: postgres
mail:
container_name: mail-service
image: inbucket/inbucket:stable
ports:
- 9000:9000