By hungdang
Hello every one,
I have a docker compose file setup private registry using space NYC3 as a volume But I can’t run it. Environment can be wrong. Can you help me?
version: '3'
services:
nginx:
image: "nginx:alpine"
restart: always
ports:
- 443:443
links:
- registry:registry
volumes:
- ./auth:/etc/nginx/conf.d
- ./auth:/usr/local/ssl/certificate
- ./auth/nginx.conf:/etc/nginx/nginx.conf:ro
registry:
image: registry:2
ports:
- 5000:5000
restart: always
# volumes:
# - ./data:/var/lib/registry
environment:
REGISTRY_HTTP_ADDR: 0.0.0.0:5000
REGISTRY_STORAGE: S3
REGISTRY_STORAGE_S3_ACCESSKEY: my key
REGISTRY_STORAGE_S3_SECRETKEY: my key
REGISTRY_STORAGE_S3_BUCKET: cbicontainer
REGISTRY_STORAGE_S3_REGION: nyc3
REGISTRY_STORAGE_S3_REGIONENDPOINT: https://nyc3.digitaloceanspaces.com/
REGISTRY_LOG_LEVEL: info
REGISTRY_HEALTH_STORAGEDRIVER_ENABLED: "false"
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
I believe that the issue is caused by the fact that the REGISTRY_STORAGE_S3_REGION value should be set to “us-east-1” instead of “nyc3”. DigitalOcean Spaces is S3-compatible, but it’s not identical to AWS S3 and does not have the same regions. DigitalOcean does not have any region-specific APIs. All requests, regardless of region, should be made to “us-east-1”.
Also, as an alternative option, I would suggest using the DigitalOcean container registry which is also backed back Spaces:
There is also a free plan that you can use.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.