Skip to content

Commit

Permalink
Auth Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMartynenko committed Feb 25, 2024
1 parent 7613e18 commit cc0f2e5
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 6 deletions.
File renamed without changes.
Binary file added grpc/bin/golangci-lint
Binary file not shown.
Binary file added grpc/bin/protoc-gen-go
Binary file not shown.
Binary file added grpc/bin/protoc-gen-go-grpc
Binary file not shown.
2 changes: 1 addition & 1 deletion cmd/grpc_client/main.go → grpc/cmd/grpc_client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/AndreiMartynenko/auth/pkg/auth_v1"
"github.com/AndreiMartynenko/auth/grpc/pkg/auth_v1"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/grpc_server/main.go → grpc/cmd/grpc_server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"math/rand"
"net"

"github.com/AndreiMartynenko/auth/pkg/auth_v1"
"github.com/AndreiMartynenko/auth/grpc/pkg/auth_v1"
"github.com/brianvoe/gofakeit"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions postgres/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PG_DATABASE_NAME=note
PG_USER=note-user
PG_PASSWORD=note-password
PG_DATABASE_NAME=auth
PG_USER=auth-user
PG_PASSWORD=auth-password
PG_PORT=54321
MIGRATION_DIR=./migrations
22 changes: 21 additions & 1 deletion postgres/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,24 @@ services:
dockerfile: migration.Dockerfile
restart: on-failure
environment:
DB_HOST: pg
DB_HOST: pg

# auth

# services:
# auth-db:
# image: postgres:14
# container_name: auth-postgres
# environment:
# POSTGRES_DB: auth_db
# POSTGRES_USER: auth_user
# POSTGRES_PASSWORD: auth_password
# ports:
# - "5432:5432"
# volumes:
# - auth-db-data:/var/lib/postgresql/data



# volumes:
# auth-db-data:

0 comments on commit cc0f2e5

Please sign in to comment.