coolify/bootstrap/helpers/constants.php

85 lines
2.1 KiB
PHP
Raw Permalink Normal View History

<?php
const REDACTED = '<REDACTED>';
2024-04-10 13:00:46 +00: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 16:00:12 +00:00
const RESTART_MODE = 'unless-stopped';
2023-09-20 13:42:41 +00:00
const DATABASE_DOCKER_IMAGES = [
'bitnami/mariadb',
'bitnami/mongodb',
'bitnami/redis',
2025-10-03 14:48:11 +00:00
'bitnamilegacy/mariadb',
'bitnamilegacy/mongodb',
'bitnamilegacy/redis',
'bitnamisecure/mariadb',
'bitnamisecure/mongodb',
'bitnamisecure/redis',
2023-09-20 13:42:41 +00:00
'mysql',
2024-10-03 18:47:22 +00:00
'bitnami/mysql',
2025-10-03 14:48:11 +00:00
'bitnamilegacy/mysql',
'bitnamisecure/mysql',
2024-10-03 18:47:22 +00:00
'mysql/mysql-server',
2023-09-20 13:42:41 +00:00
'mariadb',
2024-10-03 18:47:22 +00:00
'postgis/postgis',
2023-09-20 13:42:41 +00:00
'postgres',
2024-10-03 18:47:22 +00:00
'bitnami/postgresql',
2025-10-03 14:48:11 +00:00
'bitnamilegacy/postgresql',
'bitnamisecure/postgresql',
2024-10-03 18:47:22 +00:00
'supabase/postgres',
'elestio/postgres',
2023-09-20 13:42:41 +00:00
'mongo',
'redis',
'memcached',
'couchdb',
'neo4j',
'influxdb',
2024-03-25 11:13:43 +00:00
'clickhouse/clickhouse-server',
'timescaledb/timescaledb',
'timescaledb', // Matches timescale/timescaledb
'timescaledb-ha', // Matches timescale/timescaledb-ha
'pgvector/pgvector',
2023-09-20 13:42:41 +00:00
];
const SPECIFIC_SERVICES = [
'quay.io/minio/minio',
2024-10-10 09:46:41 +00:00
'minio/minio',
'ghcr.io/coollabsio/minio',
'coollabsio/minio',
2024-06-10 20:43:34 +00:00
'svhd/logto',
'dxflrs/garage',
];
// Based on /etc/os-release
const SUPPORTED_OS = [
'ubuntu debian raspbian pop',
'centos fedora rhel ol rocky amzn almalinux',
2024-06-10 20:43:34 +00:00
'sles opensuse-leap opensuse-tumbleweed',
'arch',
2024-09-07 06:35:26 +00:00
'alpine',
];
const NEEDS_TO_CONNECT_TO_PREDEFINED_NETWORK = [
'pgadmin',
'databasus',
'redis-insight',
];
const NEEDS_TO_DISABLE_GZIP = [
'beszel' => ['beszel'],
];
const NEEDS_TO_DISABLE_STRIPPREFIX = [
'appwrite' => ['appwrite', 'appwrite-console', 'appwrite-realtime'],
];
const SHARED_VARIABLE_TYPES = ['team', 'project', 'environment'];