#
Deploying to DigitalOcean
The do-cloud
command makes it easy to deploy built Docker images to your DigitalOcean docker container registry. If a registry doesn't yet exist it will be created.
To actually deploy and run your application you will need to create an App in the DigitalOcean dashboard, pointing it your container registry and Docker image.
This way, every time a new version of the Docker image is pushed to the registry, the live app will be automatically updated to use this image. At this point you will have something akin to "Continuous Deployment" setup.
#
Database setup
You can also use the do-cloud
command to setup a PostgreSQL database in DigitalOcean for your live app to use. For maximum communication efficiency ensure that both the App and database are located in the same regional datacenter.
#
Port
The Dockerfile
sets the web app port to 8080 by default and exposes this port to the host machine. If using the DigitalOcean app platform ensure you set the app spec to expose this port on the container.