A docker-compose example for running a read-only mirror of the ESP Component Registry. The docker-compose file consists of 2 services:
sync
- periodically synchronize AWS S3 bucket with local storageweb
- an instance of Nginx to serve the files through HTTP
- Clone this repo
- Update environment variables if needed
- Run
docker-compose up -d
- Set
IDF_COMPONENT_STORAGE_URL
environment variable to the Nginx - Check that
DEFAULT_COMPONENT_SERVICE_URL
is not set
AWS_ENDPOINT_URL
- (optional) URL of the AWS (AWS URL by default)AWS_BUCKET_NAME
- (optional) S3 Bucket name (idf-components-prod
by default)SCRIPT_SLEEP_TIME_IN_SECONDS
- (optional) Do sync after that time (7200 seconds by default)