Skip to content

Latest commit

 

History

History
53 lines (49 loc) · 994 Bytes

README.md

File metadata and controls

53 lines (49 loc) · 994 Bytes

ADD env variables to the .env file or in your environment look at the .env.example file for the variables needed

DB_CONTAINER is the name of the container that will be created for the database

before start container you need to create a network and add the container with db and container with the app to the network


then you need to apply the migrations to the database

go run ./cmd/migrator/main.go --storage-host= --storage-port= --storage-user= --storage-password= --migrations-path=./migrations

or

task main-migrations

to build the app

go build -o ./bin/sso ./cmd/sso/main.go

or

task build

to run the app

go run ./cmd/sso/main.go

or

task run

to build the docker image

docker build -t sso_service .

or

task docker-build

to run the docker container

docker run --name=sso -p 44044:44044 -network sso_service_network sso_service

or

task docker-run