coolify/bootstrap/helpers/constants.php

52 lines
1.2 KiB
PHP
Raw Permalink Normal View History

<?php
const REDACTED = '<REDACTED>';
2024-04-10 15:00:46 +02:00
const DATABASE_TYPES = ['postgresql', 'redis', 'mongodb', 'mysql', 'mariadb', 'keydb', 'dragonfly', 'clickhouse'];
const VALID_CRON_STRINGS = [
'every_minute' => '* * * * *',
'hourly' => '0 * * * *',
'daily' => '0 0 * * *',
'weekly' => '0 0 * * 0',
'monthly' => '0 0 1 * *',
'yearly' => '0 0 1 1 *',
'@hourly' => '0 * * * *',
'@daily' => '0 0 * * *',
'@weekly' => '0 0 * * 0',
'@monthly' => '0 0 1 * *',
'@yearly' => '0 0 1 1 *',
];
2023-08-21 18:00:12 +02:00
const RESTART_MODE = 'unless-stopped';
2023-09-20 15:42:41 +02:00
const DATABASE_DOCKER_IMAGES = [
'bitnami/mariadb',
'bitnami/mongodb',
'bitnami/mysql',
'bitnami/postgresql',
'bitnami/redis',
2023-09-20 15:42:41 +02:00
'mysql',
'mariadb',
'postgres',
'mongo',
'redis',
'memcached',
'couchdb',
'neo4j',
'influxdb',
2024-03-25 12:13:43 +01:00
'clickhouse/clickhouse-server',
2024-06-10 22:43:34 +02:00
'supabase/postgres',
2023-09-20 15:42:41 +02:00
];
const SPECIFIC_SERVICES = [
'quay.io/minio/minio',
2024-06-10 22:43:34 +02:00
'svhd/logto',
];
// Based on /etc/os-release
const SUPPORTED_OS = [
'ubuntu debian raspbian',
'centos fedora rhel ol rocky amzn almalinux',
2024-06-10 22:43:34 +02:00
'sles opensuse-leap opensuse-tumbleweed',
'arch',
];
const SHARED_VARIABLE_TYPES = ['team', 'project', 'environment'];