Skip to content

Commit

Permalink
.env updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TurkerKoc committed Nov 11, 2024
1 parent 821c3ca commit 78324aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions server/application-server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ DATASOURCE_URL=jdbc:postgresql://127.0.0.1/helios
DATASOURCE_USERNAME=helios
DATASOURCE_PASSWORD=helios
NATS_SERVER=localhost:4222
REPOSITORY_NAME=<repository_name># e.g. ls1intum/Helios
NATS_AUTH_TOKEN=<token>
NATS_AUTH_TOKEN='5760e8ae09adfb2756f9f8cd5cb2caa704cd3f549eaa9298be843ceb165185d815b81f90c680fa7f626b7cd63abf6ac9'
REPOSITORY_NAME=<repository_name e.g. ls1intum/Helios>

2 changes: 2 additions & 0 deletions server/webhook-listener/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NATS_AUTH_TOKEN='5760e8ae09adfb2756f9f8cd5cb2caa704cd3f549eaa9298be843ceb165185d815b81f90c680fa7f626b7cd63abf6ac9'
WEBHOOK_SECRET=<created secret in Webhook>
10 changes: 9 additions & 1 deletion server/webhook-listener/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,20 @@ Add Webhook in GitHub repository and set the secret:
export WEBHOOK_SECRET=<webhook-secret>
```

## Setup configuration and environment

Copy the file `.env.example` to `.env` and adjust the values to your needs. It is set up to work with the Docker Compose setup for database. You need to adjust some fields for NATS server.

```bash
cp .env.example .env
```

## Running with Docker Compose

Build and run with Docker Compose:

```bash
docker-compose up --build
docker-compose --env-file ./.env up --build
```

Service ports:
Expand Down
2 changes: 1 addition & 1 deletion server/webhook-listener/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
- common-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4200/health"]
interval: 5s
interval: 30s
timeout: 10s
retries: 5
start_period: 3s
Expand Down

0 comments on commit 78324aa

Please sign in to comment.