-
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(orpd-1588):enable Redis, Celery workers, and adjust server setup…
… (added security). Uncommented and enabled Redis, Celery-worker, and Celery-beats in the Docker Compose configuration. Updated `.gitignore` to include specific certificate and database files. Modified `entry.sh` to refine HTTPS server startup messaging.
- Loading branch information
1 parent
928316e
commit 6ba180e
Showing
3 changed files
with
68 additions
and
63 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 |
---|---|---|
|
@@ -117,3 +117,11 @@ webpack-stats.json | |
# Other | ||
.DS_Store | ||
/key.pem | ||
!/-out | ||
|
||
!/cert.crt | ||
|
||
!/cert.key | ||
|
||
!/cert.pem | ||
!/db.sqlite3 |
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
volumes: | ||
postgres_data: | ||
driver: local | ||
# redis_data: | ||
# driver: local | ||
redis_data: | ||
driver: local | ||
|
||
services: | ||
db: | ||
|
@@ -43,63 +43,63 @@ services: | |
networks: | ||
- proxynet | ||
|
||
# redis: | ||
# image: redis | ||
# # Expose port so we can query it for debugging | ||
# ports: | ||
# - "6379:6379" | ||
# | ||
# celery-worker: | ||
# build: | ||
# context: . | ||
# cache_from: | ||
# - fbr/application:latest | ||
# image: fbr/application:latest | ||
# command: celery --app fbr.celery_app worker --task-events --loglevel INFO | ||
# entrypoint: '' | ||
# volumes: | ||
# - .:/app | ||
# healthcheck: | ||
# test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ] | ||
# interval: 10s | ||
# timeout: 5s | ||
# retries: 2 | ||
# start_period: 5s | ||
# depends_on: | ||
# - redis | ||
# - db | ||
# environment: | ||
# REDIS_ENDPOINT: redis://redis:6379 | ||
# DEBUG: true | ||
# DJANGO_SETTINGS_MODULE: fbr.settings | ||
# RDS_POSTGRES_CREDENTIALS: '{"password":"postgres","dbname":"fbr","engine":"postgres","port":5432,"dbInstanceIdentifier":"xxx","host":"db","username":"postgres"}' | ||
# DATABASE_URL: postgres://postgres:[email protected]:5432/fbr # pragma: allowlist secret | ||
# | ||
# celery-beats: | ||
# build: | ||
# context: . | ||
# cache_from: | ||
# - fbr/application:latest | ||
# image: fbr/application:latest | ||
# command: celery --app fbr.celery_app beat --loglevel INFO | ||
# entrypoint: '' | ||
# volumes: | ||
# - .:/app | ||
# healthcheck: | ||
# test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ] | ||
# interval: 10s | ||
# timeout: 5s | ||
# retries: 2 | ||
# start_period: 5s | ||
# depends_on: | ||
# - redis | ||
# - db | ||
# environment: | ||
# REDIS_ENDPOINT: redis://redis:6379 | ||
# DEBUG: true | ||
# DJANGO_SETTINGS_MODULE: fbr.settings | ||
# RDS_POSTGRES_CREDENTIALS: '{"password":"postgres","dbname":"fbr","engine":"postgres","port":5432,"dbInstanceIdentifier":"xxx","host":"db","username":"postgres"}' | ||
# DATABASE_URL: postgres://postgres:[email protected]:5432/fbr # pragma: allowlist secret | ||
redis: | ||
image: redis | ||
# Expose port so we can query it for debugging | ||
ports: | ||
- "6379:6379" | ||
|
||
celery-worker: | ||
build: | ||
context: . | ||
cache_from: | ||
- fbr/application:latest | ||
image: fbr/application:latest | ||
command: celery --app fbr.celery_app worker --task-events --loglevel INFO | ||
entrypoint: '' | ||
volumes: | ||
- .:/app | ||
healthcheck: | ||
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 2 | ||
start_period: 5s | ||
depends_on: | ||
- redis | ||
- db | ||
environment: | ||
REDIS_ENDPOINT: redis://redis:6379 | ||
DEBUG: true | ||
DJANGO_SETTINGS_MODULE: fbr.settings | ||
RDS_POSTGRES_CREDENTIALS: '{"password":"postgres","dbname":"fbr","engine":"postgres","port":5432,"dbInstanceIdentifier":"xxx","host":"db","username":"postgres"}' | ||
DATABASE_URL: postgres://postgres:[email protected]:5432/fbr # pragma: allowlist secret | ||
|
||
celery-beats: | ||
build: | ||
context: . | ||
cache_from: | ||
- fbr/application:latest | ||
image: fbr/application:latest | ||
command: celery --app fbr.celery_app beat --loglevel INFO | ||
entrypoint: '' | ||
volumes: | ||
- .:/app | ||
healthcheck: | ||
test: [ "CMD-SHELL", "python -m dbt_copilot_python.celery_health_check.healthcheck" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 2 | ||
start_period: 5s | ||
depends_on: | ||
- redis | ||
- db | ||
environment: | ||
REDIS_ENDPOINT: redis://redis:6379 | ||
DEBUG: true | ||
DJANGO_SETTINGS_MODULE: fbr.settings | ||
RDS_POSTGRES_CREDENTIALS: '{"password":"postgres","dbname":"fbr","engine":"postgres","port":5432,"dbInstanceIdentifier":"xxx","host":"db","username":"postgres"}' | ||
DATABASE_URL: postgres://postgres:[email protected]:5432/fbr # pragma: allowlist secret | ||
|
||
networks: | ||
proxynet: | ||
|
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