-
Notifications
You must be signed in to change notification settings - Fork 373
/
docker-compose-dev.yml
34 lines (34 loc) · 1.04 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:
auth:
container_name: auth
depends_on:
- postgres
build:
context: ./
dockerfile: Dockerfile.dev
ports:
- '9999:9999'
- '9100:9100'
environment:
- GOTRUE_DB_MIGRATIONS_PATH=/go/src/github.com/supabase/auth/migrations
volumes:
- ./:/go/src/github.com/supabase/auth
command: CompileDaemon --build="make build" --directory=/go/src/github.com/supabase/auth --recursive=true -pattern="(.+\.go|.+\.env)" -exclude=auth -exclude=auth-arm64 -exclude=.env --command="/go/src/github.com/supabase/auth/auth -c=.env.docker"
postgres:
build:
context: .
dockerfile: Dockerfile.postgres.dev
container_name: auth_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: