2023-09-19 13:51:13 +00:00
|
|
|
<div>
|
2023-09-20 13:42:41 +00:00
|
|
|
<h1>Create a new Service</h1>
|
|
|
|
<div class="pb-4">You can deploy complex services easily with Docker Compose.</div>
|
2023-09-19 13:51:13 +00:00
|
|
|
<form wire:submit.prevent="submit">
|
|
|
|
<div class="flex gap-2 pb-1">
|
|
|
|
<h2>Docker Compose</h2>
|
|
|
|
<x-forms.button type="submit">Save</x-forms.button>
|
|
|
|
</div>
|
2023-09-22 12:47:25 +00:00
|
|
|
<x-forms.textarea label="Docker Compose file"
|
|
|
|
helper="
|
|
|
|
You can use these variables in your Docker Compose file and Coolify will generate default values or replace them with the values you set on the UI forms.<br>
|
|
|
|
<br>
|
|
|
|
- SERVICE_FQDN_*: FQDN - could be changable from the UI. (example: SERVICE_FQDN_GHOST)<br>
|
|
|
|
- SERVICE_URL_*: URL parsed from FQDN - could be changable from the UI. (example: SERVICE_URL_GHOST)<br>
|
|
|
|
- SERVICE_USER_*: Generated user, not encrypted in database (example: SERVICE_USER_MYSQL)<br>
|
|
|
|
- SERVICE_PASSWORD_*: Generated password, encrypted in database (example: SERVICE_PASSWORD_MYSQL)<br>"
|
|
|
|
rows="20" id="dockercompose"
|
2023-09-19 13:51:13 +00:00
|
|
|
placeholder='services:
|
|
|
|
ghost:
|
2023-09-22 10:08:51 +00:00
|
|
|
documentation: https://ghost.org/docs/config
|
2023-09-19 13:51:13 +00:00
|
|
|
image: ghost:5
|
|
|
|
volumes:
|
|
|
|
- ghost-content-data:/var/lib/ghost/content
|
|
|
|
environment:
|
|
|
|
- url=$SERVICE_FQDN_GHOST
|
|
|
|
- database__client=mysql
|
|
|
|
- database__connection__host=mysql
|
|
|
|
- database__connection__user=$SERVICE_USER_MYSQL
|
|
|
|
- database__connection__password=$SERVICE_PASSWORD_MYSQL
|
|
|
|
- database__connection__database=${MYSQL_DATABASE-ghost}
|
|
|
|
ports:
|
|
|
|
- "2368"
|
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
mysql:
|
|
|
|
documentation: https://hub.docker.com/_/mysql
|
|
|
|
image: mysql:8.0
|
|
|
|
volumes:
|
|
|
|
- ghost-mysql-data:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_USER=${SERVICE_USER_MYSQL}
|
|
|
|
- MYSQL_PASSWORD=${SERVICE_PASSWORD_MYSQL}
|
|
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
|
|
- MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_MYSQL_ROOT}
|
|
|
|
'></x-forms.textarea>
|
|
|
|
</form>
|
|
|
|
</div>
|