Container Registry

Container registry is where your built docker images are pushed to and stored.

Before you can deploy your application you will need to setup a container registry. DockerHub, AWS, Google Cloud or Digital Ocean all offer this service.

circle-check

Once you have setup your container registry you should enter the base URL in your Larakube configuration under registry.base_url or set as an environment variable:

<?php
// config/kube.php

return [
    'project_root' => base_path(),

    'cloud_provider' => 'DigitalOcean',
    
    'services' => [
        /*
        |--------------------------------------------------------------------------
        | Services Path
        |--------------------------------------------------------------------------
        |
        | The path to the directory where your services are kept.
        */
        'path' => 'kube/services',
    ],

    'registry' => [
        /*
        |--------------------------------------------------------------------------
        | Registry Base URL
        |--------------------------------------------------------------------------
        |
        | The base URL of the container/docker registry to upload images to, you do
        | not need to specify the image name and tag.
        |
        | Google Cloud:
        |   Format: HOSTNAME/PROJECT-ID
        |   Example: eu.gcr.io/my-project
        |
        | Amazon Web Services:
        |   Format: AWS_ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/MY_REPOSITORY
        |   Example: 12345678.dkr.ecr.eu-west-2.amazonaws.com/laravel
        |
        | Digital Ocean:
        |   Format: registry.digitalocean.com/<my-registry>
        |   Example: registry.digitalocean.com/laravel
        |
        */
        'base_url' => env('LARAKUBE_CONTAINER_REGISTRY_BASE_URL', null),
    ],
];

Last updated