Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Private Docker Image Deployment

This is a private docker image deployment from docker hub or user private registry example for Dstack and Phala Cloud.

The example of docker-compose.yml is provided to help you to load docker images from a private docker registry.

Notices

  • The environment variables are required to be set in the Dstack and Phala Cloud through the Encrypted Secrets feature.

    DOCKER_USERNAME=
    DOCKER_PASSWORD=
    PRIVATE_REGISTRY_URL=
    PRIVATE_REGISTRY_USERNAME=
    PRIVATE_REGISTRY_PASSWORD=
    

    The DOCKER_USERNAME and DOCKER_PASSWORD are the username and password for docker hub if you want to pull images from docker hub.

    And the PRIVATE_REGISTRY_URL, PRIVATE_REGISTRY_USERNAME and PRIVATE_REGISTRY_PASSWORD are the url, username and password for your private docker registry if you want to load images from your private docker registry.

  • When the CVM is created, the init service will be executed to pull the images from the private registry and run the containers. All services created by the init service, could be accessed through the link looks like:

    https://<app-id>-<port>.dstack-prod4.phala.network/
    
  • The init service will be executed only once when the CVM is created or updated, if you want to update the docker-compose.yml, you need to update the CVM with the updated docker-compose.yml file.