Here you can find the documentation for adding new services to Coolify.
Service templates are predefined normal docker-compose files + a bit of magic.
The bit of Magic
To be able to predefine values, like usernames, passwords, fqdns, predefined values for bind (file) mounts etc, the docker-compose files are extended with a few keywords.
More magic coming soon 🪄
In the environment option, you can do the following.Let’s use APPWRITE as an example with a generate UUID of vgsco4o and with a wildcard domain of http://example.com.
If you use the same variable on another service, it will generate the same FQDN for you.
# This does not make sense, just here to show you how it works.services: appwrite: environment: # http://appwrite-vgsco4o.example.com/ - SERVICE_FQDN_APPWRITE not-appwrite: environment: # http://appwrite-vgsco4o.example.com/ - SERVICE_FQDN_APPWRITE
You sometimes need the same domain, but with different paths.
# This makes sense, not like the previous.services: appwrite: environment: # http://appwrite-vgsco4o.example.com/ - SERVICE_FQDN_APPWRITE not-appwrite: environment: # http://appwrite-vgsco4o.example.com/v1/realtime - SERVICE_FQDN_APPWRITE=/v1/realtime definitely-not-appwrite: environment: # As SERVICE_FQDN_API is not the same as SERVICE_FQDN_APPWRITE # Coolify will generate a new FQDN # http://definitely-not-appwrite-vgsco4o.example.com/api - SERVICE_FQDN_API=/api
You can reuse this generated FQDN anywhere.
services: appwrite: environment: # http://appwrite-vgsco4o.example.com/ - SERVICE_FQDN_APPWRITE - _APP_URL=$SERVICE_FQDN_APPWRITE # _APP_URL will have the FQDN because SERVICE_FQDN_APPWRITE is just a simple environment variable
You sometimes need the same domain, but with different ports. This will tell the proxy which port to proxy to which domain.
In the example, we combine paths and ports.
services: appwrite: environment: # http://appwrite-vgsco4o.example.com/ will be proxied to port 3000 - SERVICE_FQDN_APPWRITE_3000 # http://api-vgsco4o.example.com/api will be proxied to port 2000 - SERVICE_FQDN_API_2000=/api
This could be used as a value as well. No default value allowed.
services: appwrite: environment: # http://api-vgsco4o.example.com/api defined here - SERVICE_FQDN_API_2000=/api # http://appwrite-vgsco4o.example.com/ will be proxied to port 3000 - APPWRITE_URL=$SERVICE_FQDN_APPWRITE_3000 # http://api-vgsco4o.example.com/api will be proxied to port 2000 - APPWRITE_API_URL=$SERVICE_FQDN_API_2000
URL
This will generate an URL based on the FQDN you have defined.
This helper does use base64 encoding unlike the other base64 which just generates a random string.Example: $SERVICE_REALBASE64_APPWRITEGenerator: base64_encode(Str::random(32));
You can predefine storage normally in your compose file, but there are a few extra options that you can set to tell Coolify what to do with the storage.
Create an empty directory
# Predefine directories with host bindingservices: filebrowser: image: filebrowser/filebrowser:latest volumes: - type: bind source: ./srv target: /srv is_directory: true # This will tell Coolify to create the directory (this is not available in a normal docker-compose)
Create a file with content
Here you can see how to add a file with content and a dynamic value that is coming from an environment variable.
services: filebrowser: image: filebrowser/filebrowser:latest environment: - POSTGRES_PASSWORD=password volumes: - type: bind source: ./srv/99-roles.sql target: /docker-entrypoint-initdb.d/init-scripts/99-roles.sql content: | -- NOTE: change to your own passwords for production environments \set pgpass `echo "$POSTGRES_PASSWORD"` ALTER USER authenticator WITH PASSWORD :'pgpass'; ALTER USER pgbouncer WITH PASSWORD :'pgpass';
Metadata
You need to add extra metadata to the top of the docker-compose file, like:
documentation link
a slogan
additional tags (for better searching)
logo (local icon, could be svg, png, etc)
port (always use the port which is the main entrypoint - like frontend - of the service)
Always add a port, because Caddy Proxy cannot determine the port of the
service automatically.
Example:
# documentation: https://docs.n8n.io/hosting/# slogan: n8n is an extendable workflow automation tool which enables you to connect anything to everything via its open, fair-code model.# tags: n8n,workflow,automation,open,source,low,code# logo: svgs/n8n.svg# port: 5678... rest of the compose file ...
Add a new service
Official templates stored here. They are just normal docker-compose files with a bit of magic.To add a new service you can either Generate your Service Template or easily test your templates with Docker Compose deployments inside Coolify. It uses the same process to parse, generate and deploy as the one-click services.If you are done with tests and everything works, open a PR, that have the new <service>.yaml compose file under /templates/compose.
When adding a new Service you might want to find it in the list to verify the Metadata or just install it quickly.
Make sure your Coolify container is running through the spin up command, then open a new terminal and run the following command.
docker exec coolify php artisan services:generate
This will rebuild the template, now refresh the Services and your Service should show up.
If it has already been requested, upvote it. If not, create a new request.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Coolify Documentation","colors":{"primary":"#6B16ED","light":"#FCD34D","dark":"#6B16ED"},"favicon":"/logo/coolify.png","logo":null,"api":{"openapi":["/openapi.yaml"]},"background":{"decoration":null,"color":{"light":null,"dark":"#181818"}},"navbar":{"links":[{"label":"Home","href":"https://coolify.io"},{"label":"Support","href":"mailto:hi@coollabs.io"}],"primary":{"type":"button","label":"Cloud","href":"https://app.coolify.io"}},"seo":{"metatags":{"og:site_name":"Coolify","og:description":"Self-hosting with superpowers.","og:title":"Coolify Documentation","og:url":"https://coolify.io","og:locale":"en_US","og:image":"https://cdn.coollabs.io/assets/coolify/og-image-docs.png","twitter:title":"Coolify Documentation","twitter:description":"Self-hosting with superpowers.","twitter:url":"https://twitter.com/coolifyio","twitter:site":"@coolifyio"},"indexing":"all"},"footer":{"socials":{"twitter":"https://twitter.com/coolifyio","github":"https://github.com/coollabsio/coolify"}},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://coolify.io/discord","icon":"discord"},{"anchor":"Sponsorship","href":"https://coolify.io/sponsorship","icon":"heart-pulse"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"coollabstechnologiesbt","hasAudioNarration":false,"actualSubdomain":"coollabstechnologiesbt","customDomains":[],"gitSource":{"type":"github","owner":"coollabsio","repo":"documentation-coolify-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":true},"entitlements":{},"buildId":"6ae91f3cdc2215c2063d5878:success","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API","count":73},{"language":"default","tag":"API Reference","count":73},{"language":"default","tag":"Resources","count":58},{"language":"default","tag":"Knowledge Base","count":46},{"language":"default","tag":"Services","count":41},{"language":"default","tag":"Applications","count":29},{"language":"default","tag":"Databases","count":23},{"language":"default","tag":"General","count":12},{"language":"default","tag":"Documentation","count":9},{"language":"default","tag":"Get Started","count":9}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"knowledge-base/add-a-service","slug":"/knowledge-base/add-a-service","pageMetadata":{"title":"Add a service","description":"Here you can find the documentation for adding new services to Coolify.","og:title":"How to add a new service to Coolify","href":"/knowledge-base/add-a-service"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Here you can find the documentation for adding new services to Coolify.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Service templates are predefined normal `,_jsx(_components.a,{href:`https://docs.docker.com/compose/compose-file/compose-file-v3/`,children:`docker-compose`}),` files + a bit of magic.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-bit-of-magic`,children:`The bit of Magic`}),`\n`,_jsx(_components.p,{children:`To be able to predefine values, like usernames, passwords, fqdns, predefined values for bind (file) mounts etc, the docker-compose files are extended with a few keywords.`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`More magic coming soon 🪄`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`In the `,_jsx(_components.a,{href:`https://docs.docker.com/compose/compose-file/compose-file-v3/#environment`,children:`environment`}),` option, you can do the following.`]}),`\n`,_jsxs(_components.p,{children:[`Let’s use `,_jsx(_components.code,{children:`APPWRITE`}),` as an example with a generate UUID of `,_jsx(_components.code,{children:`vgsco4o`}),` and with a `,_jsx(_components.a,{href:`/knowledge-base/server/introduction#wildcard-domain`,children:`wildcard`}),` domain of `,_jsx(_components.code,{children:`http://example.com`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`fqdn`,children:`FQDN`}),`\n`,_jsxs(_components.p,{children:[`This will `,_jsx(_components.a,{href:`/knowledge-base/server/introduction#wildcard-domain`,children:`generate`}),` a FQDN for appwrite service.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If you use the same variable on another service, it will generate the same FQDN for you.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`10`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# This does not make sense, just here to show you how it works.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_APPWRITE`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` not-appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_APPWRITE`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You sometimes need the same domain, but with different `,_jsx(_components.strong,{children:`paths`}),`.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`16`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# This makes sense, not like the previous.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_APPWRITE`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` not-appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/v1/realtime`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_APPWRITE=/v1/realtime`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` definitely-not-appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # As SERVICE_FQDN_API is not the same as SERVICE_FQDN_APPWRITE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Coolify will generate a new FQDN`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://definitely-not-appwrite-vgsco4o.example.com/api`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_API=/api`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can reuse this generated FQDN anywhere.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_APPWRITE`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`_APP_URL=$SERVICE_FQDN_APPWRITE`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # _APP_URL will have the FQDN because SERVICE_FQDN_APPWRITE is just a simple environment variable`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You sometimes need the same domain, but with different `,_jsx(_components.strong,{children:`ports`}),`. This will tell the proxy which port to proxy to which domain.\nIn the example, we combine paths and ports.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`7`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/ will be proxied to port 3000`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_APPWRITE_3000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://api-vgsco4o.example.com/api will be proxied to port 2000`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_API_2000=/api`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This could be used as a value as well. No default value allowed.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://api-vgsco4o.example.com/api defined here`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_FQDN_API_2000=/api`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://appwrite-vgsco4o.example.com/ will be proxied to port 3000`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_URL=$SERVICE_FQDN_APPWRITE_3000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # http://api-vgsco4o.example.com/api will be proxied to port 2000`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_API_URL=$SERVICE_FQDN_API_2000`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`url`,children:`URL`}),`\n`,_jsxs(_components.p,{children:[`This will `,_jsx(_components.a,{href:`/knowledge-base/server/introduction#wildcard-domain`,children:`generate`}),` an URL based on the FQDN you have defined.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # appwrite-vgsco4o.example.com`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SERVICE_URL_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`username`,children:`Username`}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_USER_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`Str::random(16)`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # qwhraJlpdkyKYSQ1`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_USERNAME=$SERVICE_USER_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`password`,children:`Password`}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_PASSWORD_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`Str::password(symbols: false)`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # m5XOD0uY4k1hXgISYoJyLdPHG7oAbNYw`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_PASSWORD=$SERVICE_PASSWORD_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can also generate 64 bit long password.`}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_PASSWORD_64_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`Str::password(length: 64, symbols: false)`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # J0QT0Cqr2ArmIT4RgTwK5F5lcXShgnJ53XTiHjqBbPntWVVG8DRHKnrsIjXBZJ8e`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_PASSWORD=$SERVICE_PASSWORD_64_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`base64`,children:`BASE64`}),`\n`,_jsxs(_components.p,{children:[`This helper is `,_jsx(_components.strong,{children:`NOT`}),` using base64 encoding, but it’s generating a random string.`]}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_BASE64_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`Str::random(32)`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_SECRET=$SERVICE_BASE64_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If you wish to generate longer strings, you can use the following:`}),`\n`,_jsx(Heading,{level:`4`,id:`base64_64`,children:`BASE64_64`}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_BASE64_64_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`Str::random(64)`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_SECRET=$SERVICE_BASE64_64_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`base64_128`,children:`BASE64_128`}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_BASE64_128_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`Str::random(128)`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_SECRET=$SERVICE_BASE64_128_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`realbase64`,children:`REALBASE64`}),`\n`,_jsxs(_components.p,{children:[`This helper does use base64 encoding unlike the other `,_jsx(_components.a,{href:`#base64`,children:`base64`}),` which just generates a random string.`]}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_REALBASE64_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`base64_encode(Str::random(32));`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_SECRET=$SERVICE_REALBASE64_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If you wish to generate longer strings, you can use the following:`}),`\n`,_jsx(Heading,{level:`4`,id:`realbase64_64`,children:`REALBASE64_64`}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_REALBASE64_64_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`base64_encode(Str::random(64));`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_SECRET=$SERVICE_REALBASE64_64_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`realbase64_128`,children:`REALBASE64_128`}),`\n`,_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`$SERVICE_REALBASE64_128_APPWRITE`})]}),`\n`,_jsxs(_components.p,{children:[`Generator: `,_jsx(_components.code,{children:`base64_encode(Str::random(128));`})]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` appwrite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPWRITE_SECRET=$SERVICE_REALBASE64_128_APPWRITE`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`storage`,children:`Storage`}),`\n`,_jsx(_components.p,{children:`You can predefine storage normally in your compose file, but there are a few extra options that you can set to tell Coolify what to do with the storage.`}),`\n`,_jsx(Heading,{level:`4`,id:`create-an-empty-directory`,children:`Create an empty directory`}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Predefine directories with host binding`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` filebrowser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` image`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`filebrowser/filebrowser:latest`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` volumes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`bind`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`./srv`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/srv`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` is_directory`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # This will tell Coolify to create the directory (this is not available in a normal docker-compose)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`create-a-file-with-content`,children:`Create a file with content`}),`\n`,_jsx(_components.p,{children:`Here you can see how to add a file with content and a dynamic value that is coming from an environment variable.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`15`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` filebrowser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` image`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`filebrowser/filebrowser:latest`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`POSTGRES_PASSWORD=password`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` volumes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`bind`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`./srv/99-roles.sql`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/docker-entrypoint-initdb.d/init-scripts/99-roles.sql`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`|`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` -- NOTE: change to your own passwords for production environments`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \\\\set pgpass `echo \"$POSTGRES_PASSWORD\"`'})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ALTER USER authenticator WITH PASSWORD :'pgpass';`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ALTER USER pgbouncer WITH PASSWORD :'pgpass';`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`metadata`,children:`Metadata`}),`\n`,_jsxs(_components.p,{children:[`You need to add extra metadata to the top of the `,_jsx(_components.code,{children:`docker-compose`}),` file, like:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`documentation link`}),`\n`,_jsx(_components.li,{children:`a slogan`}),`\n`,_jsx(_components.li,{children:`additional tags (for better searching)`}),`\n`,_jsx(_components.li,{children:`logo (local icon, could be svg, png, etc)`}),`\n`,_jsx(_components.li,{children:`port (always use the port which is the main entrypoint - like frontend - of the service)`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Always add a port, because Caddy Proxy cannot determine the port of the\nservice automatically.`})}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# documentation: https://docs.n8n.io/hosting/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# slogan: n8n is an extendable workflow automation tool which enables you to connect anything to everything via its open, fair-code model.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# tags: n8n,workflow,automation,open,source,low,code`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# logo: svgs/n8n.svg`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# port: 5678`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`... rest of the compose file ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`add-a-new-service`,children:`Add a new service`}),`\n`,_jsxs(_components.p,{children:[`Official templates stored `,_jsx(_components.a,{href:`https://github.com/coollabsio/coolify/blob/main/templates/compose`,children:`here`}),`. They are just normal docker-compose files with a bit of magic.`]}),`\n`,_jsxs(_components.p,{children:[`To add a new service you can either `,_jsx(_components.a,{href:`#generating-service-template`,children:`Generate your Service Template`}),` or easily test your templates with `,_jsx(_components.code,{children:`Docker Compose`}),` deployments inside Coolify. It uses the same process to parse, generate and deploy as the one-click services.`]}),`\n`,_jsxs(_components.p,{children:[`If you are done with tests and everything works, open a `,_jsx(_components.a,{href:`https://github.com/coollabsio/coolify/compare`,children:`PR`}),`, that have the new `,_jsx(_components.code,{children:`\u003cservice>.yaml`}),` compose file under `,_jsx(_components.code,{children:`/templates/compose`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Coolify will use a `,_jsx(_components.a,{href:`https://github.com/coollabsio/coolify/blob/main/templates/service-templates.json`,children:`parsed\nversion`}),`. More info can be found `,_jsx(_components.a,{href:`#generating-service-template`,children:`here`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`generating-service-template`,children:`Generating Service Template`}),`\n`,_jsxs(_components.p,{children:[`When adding a new Service you might want to find it in the list to verify the `,_jsx(_components.a,{href:`#metadata`,children:`Metadata`}),` or just install it quickly.\nMake sure your Coolify container is running through the `,_jsx(_components.code,{children:`spin up`}),` command, then open a new terminal and run the following command.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`docker exec coolify php artisan services:generate`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`This will rebuild the template, now refresh the Services and your Service should show up.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://github.com/coollabsio/coolify/blob/main/templates/service-templates.json`,children:`JSON Template File`}),` should not be included in your PR or Commits`]})}),`\n`,_jsx(Heading,{level:`3`,id:`request-a-new-service`,children:`Request a new service`}),`\n`,_jsx(_components.p,{children:`If there is a service template you’d like to see:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Search GitHub discussions `,_jsx(_components.a,{href:`https://github.com/coollabsio/coolify/discussions/categories/new-service-integrations`,children:`here`}),`.`]}),`\n`,_jsx(_components.li,{children:`If it has already been requested, upvote it. If not, create a new request.`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add a service","description":"Here you can find the documentation for adding new services to Coolify.","og:title":"How to add a new service to Coolify","href":"/knowledge-base/add-a-service"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The bit of Magic","slug":"the-bit-of-magic","depth":2,"children":[{"title":"FQDN","slug":"fqdn","depth":3,"children":[]},{"title":"URL","slug":"url","depth":3,"children":[]},{"title":"Username","slug":"username","depth":3,"children":[]},{"title":"Password","slug":"password","depth":3,"children":[]},{"title":"BASE64","slug":"base64","depth":3,"children":[]},{"title":"BASE64_64","slug":"base64_64","depth":4,"children":[]},{"title":"BASE64_128","slug":"base64_128","depth":4,"children":[]},{"title":"REALBASE64","slug":"realbase64","depth":3,"children":[]},{"title":"REALBASE64_64","slug":"realbase64_64","depth":4,"children":[]},{"title":"REALBASE64_128","slug":"realbase64_128","depth":4,"children":[]},{"title":"Storage","slug":"storage","depth":3,"children":[]},{"title":"Create an empty directory","slug":"create-an-empty-directory","depth":4,"children":[]},{"title":"Create a file with content","slug":"create-a-file-with-content","depth":4,"children":[]}]},{"title":"Metadata","slug":"metadata","depth":2,"children":[]},{"title":"Add a new service","slug":"add-a-new-service","depth":2,"children":[{"title":"Generating Service Template","slug":"generating-service-template","depth":3,"children":[]},{"title":"Request a new service","slug":"request-a-new-service","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"coollabstechnologiesbt","siteName":"Coolify Documentation","title":"How to add a new service to Coolify","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"knowledge-base/add-a-service.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Here you can find the documentation for adding new services to Coolify.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to add a new service to Coolify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Self-hosting with superpowers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Coolify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Self-hosting with superpowers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/coollabstechnologiesbt/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Coolify Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6B16ED\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"twitter:url\" content=\"https://twitter.com/coolifyio\">\u003clink data-mint-head rel=\"canonical\" href=\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/knowledge-base/add-a-service.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\",\"name\":\"Coolify Documentation\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev\"},{\"@type\":\"WebSite\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\",\"name\":\"Coolify Documentation\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs\",\"publisher\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service#webpage\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service\",\"name\":\"Add a service\",\"description\":\"Here you can find the documentation for adding new services to Coolify.\",\"isPartOf\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General\",\"item\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/faq\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add a service\",\"item\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service#article\",\"headline\":\"Add a service\",\"name\":\"Add a service\",\"description\":\"Here you can find the documentation for adding new services to Coolify.\",\"url\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service\",\"mainEntityOfPage\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs/knowledge-base/add-a-service#webpage\"},\"image\":\"https://cdn.coollabs.io/assets/coolify/og-image-docs.png\",\"publisher\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://coollabstechnologiesbt.mintlify.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Coolify Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Coolify Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/knowledge-base/add-a-service.md","siteName":"Coolify Documentation","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://coolify.io/discord","icon":"discord"},{"anchor":"Sponsorship","href":"https://coolify.io/sponsorship","icon":"heart-pulse"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Knowledge Base","groups":[{"group":"General","pages":[{"title":"FAQ","href":"/knowledge-base/faq"},{"title":"Health checks","href":"/knowledge-base/healthchecks"},{"title":"Domains","href":"/knowledge-base/domains"},{"title":"Monitoring","href":"/knowledge-base/monitoring"},{"title":"Environment Variables","href":"/knowledge-base/environment-variables"},{"title":"Persistent Storage","href":"/knowledge-base/persistent-storage"},{"title":"Database Backups","href":"/knowledge-base/backups"},{"title":"DNS Configuration","href":"/knowledge-base/dns-configuration"},{"title":"Drain Logs","href":"/knowledge-base/drain-logs"},{"title":"Commands","description":"A list of commands that you can use to manage your Coolify server.","href":"/knowledge-base/commands"},{"title":"Add a service","href":"/knowledge-base/add-a-service"},{"title":"Instance Updates","description":"An overview of the update settings for Coolify.","href":"/knowledge-base/instance-updates"}]},{"group":"Resources","pages":[{"title":"Applications","href":"/knowledge-base/applications"},{"title":"Databases","href":"/knowledge-base/databases"}]},{"group":"How-tos","pages":[{"title":"Load Balancing on Hetzner","href":"/knowledge-base/how-to/hetzner-loadbalancing"}]},{"group":"Administration (Self-hosted)","pages":[{"title":"Delete User","href":"/knowledge-base/self-hosted-admin/delete-user"}]},{"group":"Git","pages":[{"group":"GitHub","pages":[{"title":"Integration","href":"/knowledge-base/git/github/integration"},{"title":"GitHub Actions","href":"/knowledge-base/git/github/github-actions"}]},{"group":"Gitlab","pages":[{"title":"Integration","href":"/knowledge-base/git/gitlab/integration"}]},{"group":"Bitbucket","pages":[{"title":"Integration","href":"/knowledge-base/git/bitbucket/integration"}]},{"group":"Gitea","pages":[{"title":"Integration","href":"/knowledge-base/git/gitea/integration"}]}]},{"group":"Server","pages":[{"title":"Introduction","href":"/knowledge-base/server/introduction"},{"title":"Firewall","href":"/knowledge-base/server/firewall"},{"title":"Build Server","href":"/knowledge-base/server/build-server"},{"title":"Multiple Servers","href":"/knowledge-base/server/multiple-servers"},{"title":"OpenSSH","href":"/knowledge-base/server/openssh"},{"title":"Oracle Cloud","href":"/knowledge-base/server/oracle-cloud"},{"title":"Supported Proxy","href":"/knowledge-base/server/proxies"},{"title":"Automated Cleanup","href":"/knowledge-base/server/automated-cleanup"},{"title":"Non-root user","href":"/knowledge-base/server/non-root-user"}]},{"group":"S3","pages":[{"title":"Introduction","href":"/knowledge-base/s3/index"},{"title":"AWS S3","href":"/knowledge-base/s3/aws"},{"title":"Cloudflare R2","href":"/knowledge-base/s3/r2"}]},{"group":"Docker","pages":[{"title":"Docker Swarm","href":"/knowledge-base/docker/swarm"},{"title":"Docker Registry","href":"/knowledge-base/docker/registry"},{"title":"Docker Compose","href":"/knowledge-base/docker/compose"},{"title":"Custom Commands","href":"/knowledge-base/docker/custom-commands"}]},{"group":"Cloudflare","pages":[{"title":"Cloudflare Tunnels","href":"/knowledge-base/cloudflare/tunnels"}]},{"group":"Traefik","pages":[{"title":"Healthcheck","href":"/knowledge-base/traefik/healthcheck"},{"title":"BasicAuth Middleware","href":"/knowledge-base/traefik/basic-auth"},{"title":"Enable Dashboard","href":"/knowledge-base/traefik/dashboard"},{"title":"Dynamic Configurations","href":"/knowledge-base/traefik/dynamic-configurations"},{"title":"Custom SSL Certificates","href":"/knowledge-base/traefik/custom-ssl-certs"},{"title":"Load-balancing","href":"/knowledge-base/traefik/load-balancing"},{"title":"Redirects","href":"/knowledge-base/traefik/redirects"},{"title":"Wildcard SSL Certificates","href":"/knowledge-base/traefik/wildcard-certificates"}]}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources"}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/introduction"}]}]},"basePath":"","title":"How to add a new service to Coolify","deploymentId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","buildId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","dynamics":[],"chunks":[]}