-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
73 lines (73 loc) · 2 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
version: "3.9"
services:
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- "1025:1025"
- "8025:8025"
minio:
image: minio/minio:RELEASE.2023-04-20T17-56-55Z.hotfix.3478ff085
environment:
- MINIO_ADDRESS=:9000
- MINIO_CONSOLE_ADDRESS=:9001
- MINIO_ACCESS_KEY=galatea
- MINIO_SECRET_KEY=devdevdev
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data/minio:/var/lib/minio/data
command: server /var/lib/minio/data
gotrue:
restart: on-failure
image: supabase/gotrue:v2.91.0
depends_on:
postgres:
condition: service_healthy
environment:
- API_EXTERNAL_URL=http://localhost:8081
- DATABASE_URL=postgres://supabase_auth_admin:devdev@postgres:5432/galatea
- DB_NAMESPACE=auth
- GOTRUE_API_HOST=0.0.0.0
- GOTRUE_DB_DRIVER=postgres
- GOTRUE_JWT_SECRET=CHANGEME
- GOTRUE_SITE_URL=http://localhost:5173
- GOTRUE_SMTP_HOST=mailhog
- GOTRUE_SMTP_PORT=1025
- GOTRUE_SMTP_SENDER_NAME=Pygmalion Team
galatea_server:
restart: on-failure
build:
context: ./
dockerfile: ./server/Dockerfile
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_started
mailhog:
condition: service_started
ports:
- "8080:8080"
command: galatea_server
environment:
- ADDR=:8080
- DATABASE_URL=postgres://galatea:devdev@postgres:5432/galatea
postgres:
container_name: postgres
image: postgres:15.3-bullseye
ports:
- "5432:5432"
volumes:
- ./data/postgres/data:/var/lib/postgresql/data
- ./init_gotrue.sh:/docker-entrypoint-initdb.d/init_gotrue.sql
environment:
- POSTGRES_USER=galatea
- POSTGRES_PASSWORD=devdev
- POSTGRES_DB=galatea
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "galatea"]
interval: 5s
timeout: 5s
retries: 5