-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Real time submission status (#138)
* chore: Remove unnecessary environment variable Production mode can be enabled by the `GIN_MODE` environment variable * chore: Add new micro-services to docker compose file * feat(submissions): Create SSE implementation to send real time updates to students * feat: Attach gateway instance queue to real time updates exchange * feat(submissions): Listen for messages in the gateway instance queue * docs(): Update insomnia collection Add new SSE endpoint
- Loading branch information
1 parent
ab9af40
commit 4e879f3
Showing
15 changed files
with
524 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ services: | |
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: codelabs | ||
ports: | ||
- 5432:5432 | ||
- "127.0.0.1:5432:5432" | ||
volumes: | ||
- ./volumes/postgres:/var/lib/postgresql/data | ||
|
||
|
@@ -23,8 +23,8 @@ services: | |
RABBITMQ_DEFAULT_USER: rabbitmq | ||
RABBITMQ_DEFAULT_PASS: rabbitmq | ||
ports: | ||
- 5672:5672 | ||
- 15672:15672 | ||
- "127.0.0.1:5672:5672" | ||
- "127.0.0.1:15672:15672" | ||
volumes: | ||
- ./volumes/rabbitmq:/var/lib/rabbitmq | ||
|
||
|
@@ -33,9 +33,31 @@ services: | |
image: ghcr.io/upb-code-labs/static-files-microservice:latest | ||
container_name: codelabs_static_files | ||
restart: on-failure | ||
environment: | ||
- GIN_MODE=release | ||
ports: | ||
- "127.0.0.1:8081:8080" | ||
|
||
codelabs_tests_runner: | ||
image: ghcr.io/upb-code-labs/tests-microservice:latest | ||
container_name: codelabs_tests_runner | ||
restart: on-failure | ||
environment: | ||
- STATIC_FILES_MICROSERVICE_ADDRESS=http://codelabs_static_files:8080 | ||
- RABBIT_MQ_CONNECTION_STRING=amqp://rabbitmq:rabbitmq@codelabs_rabbitmq:5672/ | ||
depends_on: | ||
- codelabs_static_files | ||
- codelabs_rabbitmq | ||
|
||
codelabs_submissions_status_updater: | ||
image: ghcr.io/upb-code-labs/submissions-status-updater-microservice:latest | ||
container_name: codelabs_submissions_status_updater | ||
restart: on-failure | ||
environment: | ||
- DB_CONNECTION_STRING=postgres://postgres:postgres@codelabs_postgres_db:5432/codelabs?sslmode=disable | ||
- RABBIT_MQ_CONNECTION_STRING=amqp://rabbitmq:rabbitmq@codelabs_rabbitmq:5672/ | ||
depends_on: | ||
- codelabs_rabbitmq | ||
- codelabs_postgres_db | ||
|
||
# Utils | ||
|
@@ -47,4 +69,4 @@ services: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: postgres | ||
ports: | ||
- 5050:80 | ||
- 5050:80 |
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
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.