Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (52 loc) · 1.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (52 loc) · 1.63 KB
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
services:
postgres:
image: postgres:17.4
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
DB_NAMESPACE: auth
ports:
- 5432:5432
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 1s
timeout: 1s
retries: 50
volumes:
- pg_data:/var/lib/postgresql/data
- ./dev/init-postgres.sh:/docker-entrypoint-initdb.d/init.sh
maildev:
image: maildev/maildev
ports:
# - 1025:1025
- 1447:1080
gotrue:
image: supabase/gotrue:v2.169.0
depends_on:
postgres:
condition: service_healthy
environment:
LOG_LEVEL: "debug"
GOTRUE_API_HOST: "0.0.0.0"
PORT: "1227"
API_EXTERNAL_URL: "http://localhost:1227"
GOTRUE_SITE_URL: "http://localhost:1227"
GOTRUE_URI_ALLOW_LIST: "http://localhost:1227,http://localhost:5173"
GOTRUE_DB_DRIVER: "postgres"
DATABASE_URL: "postgres://supabase_auth_admin:root@postgres:5432/postgres?sslmode=disable"
DB_NAMESPACE: "auth"
GOTRUE_JWT_SECRET: "not-so-secret-dev-secret"
GOTRUE_COOKIE_SECRET: "not-so-secret-dev-cookies"
GOTRUE_JWT_EXP: "315360000"
GOTRUE_SMTP_HOST: "maildev"
GOTRUE_SMTP_PORT: "1025"
GOTRUE_SMTP_ADMIN_EMAIL: "wind@jim.computer"
GOTRUE_EXTERNAL_GOOGLE_ENABLED: "true"
GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID: "${GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID}"
GOTRUE_EXTERNAL_GOOGLE_SECRET: "${GOTRUE_EXTERNAL_GOOGLE_SECRET}"
GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI: "http://localhost:1227/callback"
ports:
- "1227:1227"
volumes:
pg_data: