Skip to content

Commit

Permalink
Merge pull request #24 from perebaj/dockercompose_envvars
Browse files Browse the repository at this point in the history
🐛 chore: Google Auth envs
  • Loading branch information
perebaj authored Oct 2, 2023
2 parents 0de59ef + 1742c59 commit db614d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ Jamming around orders with API endpoints 🎸

If you want to run this project locally you must set up these environment variables:

CONTRACTUS_POSTGRES_URL
CONTRACTUS_GOOGLE_CLIENT_ID
CONTRACTUS_GOOGLE_CLIENT_SECRET
CONTRACTUS_DOMAIN
CONTRACTUS_JWT_SECRET_KEY

This could be made in the [docker-compose.yml](./docker-compose.yaml)
This can be done in your terminal, where you export the variables, and then in the same terminal, run the service startup command `make dev/start`

**Note:** To create your own Google Client for OAuth2.0, access the following [link](https://console.cloud.google.com/apis/credentials), without these secrets, the service won't run locally, but it's possible to access it using the link present in the repository details on GitHub

Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ services:
CONTRACTUS_DOMAIN: http://localhost:8080
CONTRACTUS_JWT_SECRET_KEY: secret
CONTRACTUS_ACCESS_TYPE: offline

CONTRACTUS_GOOGLE_CLIENT_ID: ${CONTRACTUS_GOOGLE_CLIENT_ID}
CONTRACTUS_GOOGLE_CLIENT_SECRET: ${CONTRACTUS_GOOGLE_CLIENT_SECRET}
volumes:
- .:/app/src
ports:
Expand Down

0 comments on commit db614d9

Please sign in to comment.