@@ -1,7 +1,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	"name": "coolify",
 | 
						"name": "coolify",
 | 
				
			||||||
	"description": "An open-source & self-hostable Heroku / Netlify alternative.",
 | 
						"description": "An open-source & self-hostable Heroku / Netlify alternative.",
 | 
				
			||||||
	"version": "2.9.7",
 | 
						"version": "2.9.8",
 | 
				
			||||||
	"license": "AGPL-3.0",
 | 
						"license": "AGPL-3.0",
 | 
				
			||||||
	"scripts": {
 | 
						"scripts": {
 | 
				
			||||||
		"dev": "docker-compose -f docker-compose-dev.yaml up -d && cross-env NODE_ENV=development & svelte-kit dev --host 0.0.0.0",
 | 
							"dev": "docker-compose -f docker-compose-dev.yaml up -d && cross-env NODE_ENV=development & svelte-kit dev --host 0.0.0.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,6 +27,7 @@ export const post: RequestHandler = async (event) => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		const config = {
 | 
							const config = {
 | 
				
			||||||
			image: `${image}:${version}`,
 | 
								image: `${image}:${version}`,
 | 
				
			||||||
 | 
								volume: `${id}-nc:/usr/app/data`,
 | 
				
			||||||
			environmentVariables: {}
 | 
								environmentVariables: {}
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
		if (serviceSecret.length > 0) {
 | 
							if (serviceSecret.length > 0) {
 | 
				
			||||||
@@ -41,6 +42,7 @@ export const post: RequestHandler = async (event) => {
 | 
				
			|||||||
					container_name: id,
 | 
										container_name: id,
 | 
				
			||||||
					image: config.image,
 | 
										image: config.image,
 | 
				
			||||||
					networks: [network],
 | 
										networks: [network],
 | 
				
			||||||
 | 
										volumes: [config.volume],
 | 
				
			||||||
					environment: config.environmentVariables,
 | 
										environment: config.environmentVariables,
 | 
				
			||||||
					restart: 'always',
 | 
										restart: 'always',
 | 
				
			||||||
					...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),
 | 
										...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user