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