forked from supabase/auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
34 lines (34 loc) · 1.06 KB
/
docker-compose-dev.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
version: "3.9"
services:
gotrue:
container_name: gotrue
depends_on:
- postgres
build:
context: ./
dockerfile: Dockerfile.dev
ports:
- '9999:9999'
- '9100:9100'
environment:
- GOTRUE_DB_MIGRATIONS_PATH=/go/src/github.com/netlify/gotrue/migrations
volumes:
- ./:/go/src/github.com/netlify/gotrue
command: CompileDaemon --build="make build" --directory=/go/src/github.com/netlify/gotrue --recursive=true -pattern="(.+\.go|.+\.env)" -exclude=gotrue -exclude=gotrue-arm64 -exclude=.env --command="/go/src/github.com/netlify/gotrue/gotrue -c=.env.docker"
postgres:
build:
context: .
dockerfile: Dockerfile.postgres.dev
container_name: gotrue_postgres
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
- POSTGRES_DB=postgres
# sets the schema name, this should match the `NAMESPACE` env var set in your .env file
- DB_NAMESPACE=auth
volumes:
postgres_data: