-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update cat-gateway packaging, update README.md with guidance ho…
…w to locally spin up cat-gateway with event-db (#437) * update cat-gateway packaging * fix * fix * fix * fix * fix spelling * update entry.sh comments * wip * fix --------- Co-authored-by: Oleksandr Prokhorenko <[email protected]>
- Loading branch information
Showing
12 changed files
with
139 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: "3" | ||
|
||
services: | ||
event-db: | ||
image: event-db:latest | ||
environment: | ||
# Required environment variables for migrations | ||
- DB_HOST=localhost | ||
- DB_PORT=5432 | ||
- DB_NAME=CatalystEventDev | ||
- DB_DESCRIPTION="Catalyst Event DB" | ||
- DB_SUPERUSER=postgres | ||
- DB_SUPERUSER_PASSWORD=postgres | ||
- DB_USER=catalyst-event-dev | ||
- DB_USER_PASSWORD=CHANGE_ME | ||
|
||
- INIT_AND_DROP_DB=true | ||
- WITH_MIGRATIONS=true | ||
- WITH_SEED_DATA=true | ||
ports: | ||
- 5432:5432 | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U $${DB_SUPERUSER} -d $${DB_SUPERUSER_PASSWORD}"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 10 | ||
|
||
cat-gateway: | ||
image: cat-gateway:latest | ||
environment: | ||
- DB_URL=postgres://catalyst-event-dev:CHANGE_ME@event-db/CatalystEventDev | ||
- CAT_ADDRESS=0.0.0.0:3030 | ||
- LOG_LEVEL=info | ||
- DATA_REFRESH_TICK=5 | ||
- CHECK_CONFIG_TICK=5 | ||
- MACHINE_ID="UID" | ||
hostname: 127.0.0.1 | ||
ports: | ||
- 3030:3030 | ||
depends_on: | ||
event-db: | ||
condition: service_healthy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.