Created
December 30, 2020 08:12
-
-
Save armanm/14a8ee3c41530848221b24b552adf97d to your computer and use it in GitHub Desktop.
DigitalOcean App Platform with container registry and image spec example
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
name: arman-test | |
region: nyc3 | |
services: | |
- | |
name: nginx | |
image: | |
registry_type: DOCR | |
repository: my-nginx | |
tag: latest | |
instance_size_slug: basic-xxs | |
http_port: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are the steps to follow:
docker pull nginxdemos/hello
docker tag <THE-NGINX-IMAGE-ID> registry.digitalocean.com/<YOUR-REGISTRY-NAME>/my-nginx
doctl auth init
doctl registry create <YOUR-REGISTRY-NAME>
docker push registry.digitalocean.com/<YOUR-REGISTRY-NAME>/my-nginx
spec.yml
file to disk and from the same location rundoctl apps create --spec ./spec.yaml
If all is working you will shortly see a deploy success status and the public URL for your app which should return a NGINX hello world page.