-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.44 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.44 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
# Local Supabase stack for LinkForge development.
# Start with: docker compose up -d
# Requires Docker Compose v2+.
#
# After startup, run the migration:
# supabase db reset
#
# Or apply manually:
# docker compose exec -T db psql -U postgres -d postgres < supabase/migrations/00001_initial_schema.sql
services:
db:
image: supabase/postgres:15.8.1.085
container_name: linkforge-db
ports:
- "54322:5432"
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
rest:
image: postgrest/postgrest:v13.0.7
container_name: linkforge-rest
ports:
- "3001:3000"
environment:
PGRST_DB_URI: postgres://postgres:postgres@db:5432/postgres
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: anon
PGRST_DB_EXTRA_SEARCH_PATH: public
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
depends_on:
db:
condition: service_healthy
kong:
image: kong:3.8.0
container_name: linkforge-kong
ports:
- "8000:8000"
- "8443:8443"
environment:
KONG_DATABASE: "off"
KONG_DECLARATIVE_CONFIG: /etc/kong/kong.yml
KONG_LOG_LEVEL: notice
volumes:
- ./supabase/kong.yml:/etc/kong/kong.yml
depends_on:
- rest
volumes:
pgdata: