Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
FIX: Update docker-compose.prod.yml to use volume mounts for keys
Browse files Browse the repository at this point in the history
  • Loading branch information
930C committed Jan 18, 2024
1 parent 138b04a commit faed7c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deployments/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:

app:
image: "${SERVER_IMAGE:-ghcr.io/wwi21seb-projekt/server-alpha:main}" # It's possible to specify the image to use in the environment, default is the latest image from the github container registry
user: ${UID}:${GID}
restart: unless-stopped # Restart the container unless it was stopped by the user
depends_on:
- db
Expand All @@ -34,11 +35,12 @@ services:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- JWT_PRIVATE_KEY=${JWT_PRIVATE_KEY}
- JWT_PUBLIC_KEY=${JWT_PUBLIC_KEY}
- MAILGUN_API_KEY=${MAILGUN_API_KEY}
ports:
- "${APP_PORT}:8080"
volumes:
- ${PWD}/private_key.pem:/private_key.pem
- ${PWD}/public_key.pem:/public_key.pem
networks:
- traefik_proxy
- default
Expand Down
1 change: 1 addition & 0 deletions internal/routing/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,6 @@ func userRouter(databaseMgr *managers.DatabaseMgr, jwtMgr *managers.JWTMgr, mail
r.Post("/refresh", userHdl.RefreshToken)
r.Post("/{username}/activate", userHdl.ActivateUser)
r.Delete("/{username}/activate", userHdl.ResendToken)
r.Get("/{username}", userHdl.HandleGetUserRequest)
}
}

0 comments on commit faed7c9

Please sign in to comment.