Skip to content

Commit

Permalink
Merge pull request #160 from adhocteam/cm-204-add-clamav-env-variables
Browse files Browse the repository at this point in the history
add clam-av to docker-compose and env variables
  • Loading branch information
dcmcand authored Feb 10, 2021
2 parents 16c743f + 48e1b1b commit 5bb9bd9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ S3_BUCKET=ttadp-test
AWS_SECRET_ACCESS_KEY=EXAMPLESECRETKEY
AWS_ACCESS_KEY_ID=EXAMPLEID
MINIO_ROOT_PASSWORD=EXAMPLESECRETKEY
MINIO_ROOT_USER=EXAMPLEID
MINIO_ROOT_USER=EXAMPLEID
# if using docker
CLAMAV_ENDPOINT=http://clamav-rest:8080
# if running locally
# CLAMAV_ENDPOINT=http://localhost:8081
1 change: 1 addition & 0 deletions deployment_config/dev_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ REDIRECT_URI_HOST: https://tta-smarthub-dev.app.cloud.gov
rds_instance: ttahub-dev
s3_doc_upload_bucket: ttahub-document-upload-dev
TTA_SMART_HUB_URI: https://tta-smarthub-dev.app.cloud.gov
CLAMAV_ENDPOINT: http://clamapi-ttahub-dev.apps.internal:8080
1 change: 1 addition & 0 deletions deployment_config/prod_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ REDIRECT_URI_HOST: https://ttahub.ohs.acf.hhs.gov
rds_instance: ttahub-prod
s3_doc_upload_bucket: ttahub-document-upload-prod
TTA_SMART_HUB_URI: https://ttahub.ohs.acf.hhs.gov
CLAMAV_ENDPOINT: http://clamapi-ttahub-prod.apps.internal:8080
1 change: 1 addition & 0 deletions deployment_config/sandbox_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ REDIRECT_URI_HOST: https://tta-smarthub-sandbox.app.cloud.gov
rds_instance: ttahub-sandbox
s3_doc_upload_bucket: ttahub-document-upload-sandbox
TTA_SMART_HUB_URI: https://tta-smarthub-sandbox.app.cloud.gov
CLAMAV_ENDPOINT: http://clamapi-ttahub-dev.apps.internal:8080
1 change: 1 addition & 0 deletions deployment_config/staging_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ REDIRECT_URI_HOST: https://tta-smarthub-staging.app.cloud.gov
rds_instance: ttahub-staging
s3_doc_upload_bucket: ttahub-document-upload-staging
TTA_SMART_HUB_URI: https://tta-smarthub-staging.app.cloud.gov
CLAMAV_ENDPOINT: http://clamapi-ttahub-dev.apps.internal:8080
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ services:
image: amazon/aws-cli
env_file: .env
command: ["--endpoint-url", "$S3_ENDPOINT", "s3api", "create-bucket", "--bucket", "$S3_BUCKET"]

clamav-server:
image: mkodockx/docker-clamav:alpine
clamav-rest:
image: lokori/clamav-rest
environment:
CLAMD_HOST: clamav-server
ports:
- "8081:8080"

volumes:
dbdata: {}
Expand Down
1 change: 1 addition & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ applications:
HSES_DATA_FILE_URL: ((HSES_DATA_FILE_URL))
HSES_DATA_USERNAME: ((HSES_DATA_USERNAME))
HSES_DATA_PASSWORD: ((HSES_DATA_PASSWORD))
CLAMAV_ENDPOINT: ((CLAMAV_ENDPOINT))
services:
- ((rds_instance))
- ((s3_doc_upload_bucket))

0 comments on commit 5bb9bd9

Please sign in to comment.