mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-26 12:33:25 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1388bee62c | ||
|
|
8ebc778d40 | ||
|
|
3a59091b41 | ||
|
|
e764c4651c | ||
|
|
10f04d2177 | ||
|
|
119f994b50 |
@@ -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",
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export const supportedDatabaseTypesAndVersions = [
|
|||||||
name: 'postgresql',
|
name: 'postgresql',
|
||||||
fancyName: 'PostgreSQL',
|
fancyName: 'PostgreSQL',
|
||||||
baseImage: 'bitnami/postgresql',
|
baseImage: 'bitnami/postgresql',
|
||||||
versions: ['14.2.0', '13.6.0', '12.10.0 ', '11.15.0', '10.20.0']
|
versions: ['14.2.0', '13.6.0', '12.10.0', '11.15.0', '10.20.0']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'redis',
|
name: 'redis',
|
||||||
|
|||||||
@@ -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}`] } : {}),
|
||||||
@@ -59,6 +61,11 @@ export const post: RequestHandler = async (event) => {
|
|||||||
[network]: {
|
[network]: {
|
||||||
external: true
|
external: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
volumes: {
|
||||||
|
[config.volume.split(':')[0]]: {
|
||||||
|
name: config.volume.split(':')[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const composeFileDestination = `${workdir}/docker-compose.yaml`;
|
const composeFileDestination = `${workdir}/docker-compose.yaml`;
|
||||||
|
|||||||
Reference in New Issue
Block a user