Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ JWT_SECRET=myfancysecret
USERS_API_ADDRESS=http://users-api:8083

# todos-api:
TODOS_API_PORT=8082
JWT_SECRET=myfancysecret
REDIS_HOST=redis-queue
REDIS_PORT=6379
Expand All @@ -24,7 +25,9 @@ REDIS_PORT=6379
REDIS_CHANNEL=log_channel

#login details
# USERNAME PASSWORD
admin Admin123
hng HngTech
user Password
USER_ADMIN=admin
PASSWORD_ADMIN=Admin123
USER_HNG=hng
PASSWORD_HNG=HngTech
USER_DEFAULT=user
PASSWORD_DEFAULT=Password
8 changes: 8 additions & 0 deletions .idea/DevOps-Stage-4.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

141 changes: 141 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions auth-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Go runtime as the base image
FROM golang:1.21-alpine

WORKDIR /app

# Copy the Go module files
COPY go.mod go.sum ./

# Download dependencies
RUN go mod download

COPY . .

# Build the Go application
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o auth-api .

EXPOSE 8081

CMD ["./auth-api"]
Loading