General

Save {{-- Download Config --}} {{-- --}}
General configuration for your application.
@if (!$application->dockerfile && $application->build_pack !== 'dockerimage')
@if ($application->settings->is_static || $application->build_pack === 'static') @endif
@if ($application->build_pack === 'dockercompose') @if ( !is_null($parsedServices) && count($parsedServices) > 0 && !$application->settings->is_raw_compose_deployment_enabled)

Domains

@foreach (data_get($parsedServices, 'services') as $serviceName => $service) @if (!isDatabaseImage(data_get($service, 'image')))
Generate Domain
@endif @endforeach @endif @endif
@endif @if ($application->settings->is_static || $application->build_pack === 'static') Generate Default Nginx Configuration @endif
@if ($application->could_set_build_commands()) @endif @if ($application->settings->is_static && $application->build_pack !== 'static') @endif
@if ($application->build_pack !== 'dockercompose')
@if ($application->settings->is_container_label_readonly_enabled == false) @else Generate Domain @endif
@if ($application->settings->is_container_label_readonly_enabled == false) @if ($application->redirect === 'both') @elseif ($application->redirect === 'www') @elseif ($application->redirect === 'non-www') @endif @else @if ($application->settings->is_container_label_readonly_enabled)
Set Direction
@endif @endif
@endif @if ($application->build_pack !== 'dockercompose')

Docker Registry

@if ($application->build_pack !== 'dockerimage' && !$application->destination->server->isSwarm()) @endif
@if ($application->destination->server->isSwarm()) @if ($application->build_pack !== 'dockerimage')
Docker Swarm requires the image to be available in a registry. More info here.
@endif @endif
@if ($application->build_pack === 'dockerimage') @if ($application->destination->server->isSwarm()) @else @endif @else @if ( $application->destination->server->isSwarm() || $application->additional_servers->count() > 0 || $application->settings->is_build_server_enabled) @else @endif @endif
@endif

Build

@if ($application->build_pack === 'dockerimage') @else @if ($application->could_set_build_commands()) @if ($application->build_pack === 'nixpacks')
Nixpacks will detect the required configuration automatically. Framework Specific Docs
@endif @endif
@if ($application->build_pack === 'dockercompose')
The following commands are for advanced use cases. Only modify them if you know what are you doing.
@else
@if ($application->build_pack === 'dockerfile' && !$application->dockerfile) @endif @if ($application->build_pack === 'dockerfile') @endif @if ($application->could_set_build_commands()) @if ($application->settings->is_static) @else @endif @endif
@if ($this->application->is_github_based() && !$this->application->is_public_repository())
@endif @if ($application->build_pack !== 'dockercompose')
@endif @endif
@endif
@if ($application->build_pack === 'dockercompose') Reload Compose File @if ($application->settings->is_raw_compose_deployment_enabled) @else @if ((int) $application->compose_parsing_version >= 3) @endif @endif
{{-- --}}
@endif @if ($application->dockerfile) @endif @if ($application->build_pack !== 'dockercompose')

Network

@if ($application->settings->is_static || $application->build_pack === 'static') @else @if ($application->settings->is_container_label_readonly_enabled === false) @else @endif @endif @if (!$application->destination->server->isSwarm()) @endif @if (!$application->destination->server->isSwarm()) @endif

HTTP Basic Authentication

@if ($application->is_http_basic_auth_enabled)
@endif
@if ($application->settings->is_container_label_readonly_enabled) @else @endif
@endif

Pre/Post Deployment Commands

@if ($application->build_pack === 'dockercompose') @endif
@if ($application->build_pack === 'dockercompose') @endif
@script @endscript