194 lines
3.9 KiB
Markdown
194 lines
3.9 KiB
Markdown
[Skip to content](https://coolify.io/docs/api-reference/api/operations/create-dockerfile-application#VPContent)
|
||
|
||
Return to top
|
||
|
||
Create (Dockerfile without git)[](https://coolify.io/docs/api-reference/api/operations/create-dockerfile-application#create-dockerfile-without-git)
|
||
|
||
=====================================================================================================================================================
|
||
|
||
POST
|
||
|
||
/applications/dockerfile
|
||
|
||
Create new application based on a simple Dockerfile (without git).
|
||
|
||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/create-dockerfile-application#authorizations)
|
||
|
||
---------------------------------------------------------------------------------------------------------------------
|
||
|
||
bearerAuth
|
||
|
||
Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token.
|
||
|
||
Type
|
||
|
||
HTTP (bearer)
|
||
|
||
Request Body[](https://coolify.io/docs/api-reference/api/operations/create-dockerfile-application#request-body)
|
||
|
||
-----------------------------------------------------------------------------------------------------------------
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
{
|
||
|
||
"project\_uuid": "string",
|
||
|
||
"server\_uuid": "string",
|
||
|
||
"environment\_name": "string",
|
||
|
||
"environment\_uuid": "string",
|
||
|
||
"dockerfile": "string",
|
||
|
||
"build\_pack": "string",
|
||
|
||
"ports\_exposes": "string",
|
||
|
||
"destination\_uuid": "string",
|
||
|
||
"name": "string",
|
||
|
||
"description": "string",
|
||
|
||
"domains": "string",
|
||
|
||
"docker\_registry\_image\_name": "string",
|
||
|
||
"docker\_registry\_image\_tag": "string",
|
||
|
||
"ports\_mappings": "string",
|
||
|
||
"base\_directory": "string",
|
||
|
||
"health\_check\_enabled": true,
|
||
|
||
"health\_check\_path": "string",
|
||
|
||
"health\_check\_port": "string",
|
||
|
||
"health\_check\_host": "string",
|
||
|
||
"health\_check\_method": "string",
|
||
|
||
"health\_check\_return\_code": 0,
|
||
|
||
"health\_check\_scheme": "string",
|
||
|
||
"health\_check\_response\_text": "string",
|
||
|
||
"health\_check\_interval": 0,
|
||
|
||
"health\_check\_timeout": 0,
|
||
|
||
"health\_check\_retries": 0,
|
||
|
||
"health\_check\_start\_period": 0,
|
||
|
||
"limits\_memory": "string",
|
||
|
||
"limits\_memory\_swap": "string",
|
||
|
||
"limits\_memory\_swappiness": 0,
|
||
|
||
"limits\_memory\_reservation": "string",
|
||
|
||
"limits\_cpus": "string",
|
||
|
||
"limits\_cpuset": "string",
|
||
|
||
"limits\_cpu\_shares": 0,
|
||
|
||
"custom\_labels": "string",
|
||
|
||
"custom\_docker\_run\_options": "string",
|
||
|
||
"post\_deployment\_command": "string",
|
||
|
||
"post\_deployment\_command\_container": "string",
|
||
|
||
"pre\_deployment\_command": "string",
|
||
|
||
"pre\_deployment\_command\_container": "string",
|
||
|
||
"manual\_webhook\_secret\_github": "string",
|
||
|
||
"manual\_webhook\_secret\_gitlab": "string",
|
||
|
||
"manual\_webhook\_secret\_bitbucket": "string",
|
||
|
||
"manual\_webhook\_secret\_gitea": "string",
|
||
|
||
"redirect": "string",
|
||
|
||
"instant\_deploy": true,
|
||
|
||
"is\_force\_https\_enabled": true,
|
||
|
||
"use\_build\_server": true,
|
||
|
||
"is\_http\_basic\_auth\_enabled": true,
|
||
|
||
"http\_basic\_auth\_username": "string",
|
||
|
||
"http\_basic\_auth\_password": "string",
|
||
|
||
"connect\_to\_docker\_network": true,
|
||
|
||
"force\_domain\_override": true,
|
||
|
||
"autogenerate\_domain": true,
|
||
|
||
"is\_container\_label\_escape\_enabled": true
|
||
|
||
}
|
||
|
||
Responses[](https://coolify.io/docs/api-reference/api/operations/create-dockerfile-application#responses)
|
||
|
||
-----------------------------------------------------------------------------------------------------------
|
||
|
||
201400401409
|
||
|
||
Application created successfully.
|
||
|
||
Content-Type
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
{
|
||
|
||
"uuid": "string"
|
||
|
||
}
|
||
|
||
POST
|
||
|
||
/applications/dockerfile
|
||
|
||
Playground[](https://coolify.io/docs/api-reference/api/operations/create-dockerfile-application#playground)
|
||
|
||
-------------------------------------------------------------------------------------------------------------
|
||
|
||
Authorization
|
||
|
||
bearerAuth
|
||
|
||
Body
|
||
|
||
Try it out
|
||
|
||
Samples[](https://coolify.io/docs/api-reference/api/operations/create-dockerfile-application#samples)
|
||
|
||
-------------------------------------------------------------------------------------------------------
|
||
|
||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|