2023-04-12 19:23:32 +00:00
|
|
|
services:
|
|
|
|
coolify:
|
2024-03-06 20:33:32 +00:00
|
|
|
image: "githaven.org/shiloh/lasthourcloud:latest"
|
2023-04-27 10:09:41 +00:00
|
|
|
volumes:
|
2023-04-28 09:00:21 +00:00
|
|
|
- type: bind
|
2024-02-23 00:22:33 +00:00
|
|
|
source: /data/coolify/source/.env
|
2023-04-28 09:00:21 +00:00
|
|
|
target: /var/www/html/.env
|
|
|
|
read_only: true
|
2023-05-25 10:55:34 +00:00
|
|
|
- /data/coolify/ssh:/var/www/html/storage/app/ssh
|
2023-08-09 12:44:36 +00:00
|
|
|
- /data/coolify/applications:/var/www/html/storage/app/applications
|
|
|
|
- /data/coolify/databases:/var/www/html/storage/app/databases
|
2024-01-12 20:26:51 +00:00
|
|
|
- /data/coolify/services:/var/www/html/storage/app/services
|
2023-08-09 12:44:36 +00:00
|
|
|
- /data/coolify/backups:/var/www/html/storage/app/backups
|
2024-03-01 13:04:29 +00:00
|
|
|
- /data/coolify/webhooks-during-maintenance:/var/www/html/storage/app/webhooks-during-maintenance
|
2023-04-12 19:23:32 +00:00
|
|
|
environment:
|
2024-05-28 18:22:18 +00:00
|
|
|
- PHP_MEMORY_LIMIT
|
2023-07-14 12:19:31 +00:00
|
|
|
- APP_ID
|
2023-04-13 13:48:27 +00:00
|
|
|
- APP_ENV=production
|
|
|
|
- APP_DEBUG
|
|
|
|
- APP_NAME
|
|
|
|
- APP_KEY
|
|
|
|
- APP_URL
|
|
|
|
- DB_CONNECTION
|
|
|
|
- DB_HOST
|
|
|
|
- DB_PORT
|
|
|
|
- DB_DATABASE
|
|
|
|
- DB_USERNAME
|
|
|
|
- DB_PASSWORD
|
|
|
|
- QUEUE_CONNECTION
|
2023-05-10 07:44:04 +00:00
|
|
|
- REDIS_HOST
|
2023-05-10 07:39:38 +00:00
|
|
|
- REDIS_PASSWORD
|
2024-04-13 13:16:57 +00:00
|
|
|
- HORIZON_BALANCE
|
2023-10-18 13:49:50 +00:00
|
|
|
- HORIZON_MAX_PROCESSES
|
2023-11-24 09:12:37 +00:00
|
|
|
- HORIZON_BALANCE_MAX_SHIFT
|
|
|
|
- HORIZON_BALANCE_COOLDOWN
|
2023-05-26 09:31:46 +00:00
|
|
|
- SSL_MODE=off
|
2023-05-09 13:45:24 +00:00
|
|
|
- PHP_PM_CONTROL=dynamic
|
2023-06-30 08:49:00 +00:00
|
|
|
- PHP_PM_START_SERVERS=1
|
|
|
|
- PHP_PM_MIN_SPARE_SERVERS=1
|
2023-05-09 19:32:43 +00:00
|
|
|
- PHP_PM_MAX_SPARE_SERVERS=10
|
2023-12-05 12:56:11 +00:00
|
|
|
- PUSHER_HOST
|
2023-12-06 13:22:19 +00:00
|
|
|
- PUSHER_BACKEND_HOST
|
2023-12-05 12:56:11 +00:00
|
|
|
- PUSHER_PORT
|
2023-12-06 13:22:19 +00:00
|
|
|
- PUSHER_BACKEND_PORT
|
2023-12-05 12:56:11 +00:00
|
|
|
- PUSHER_SCHEME
|
|
|
|
- PUSHER_APP_ID
|
|
|
|
- PUSHER_APP_KEY
|
|
|
|
- PUSHER_APP_SECRET
|
2023-12-11 19:40:05 +00:00
|
|
|
- AUTOUPDATE
|
2023-07-14 11:58:05 +00:00
|
|
|
- SELF_HOSTED
|
2024-04-12 21:50:23 +00:00
|
|
|
- SSH_MUX_PERSIST_TIME
|
2024-02-06 10:36:20 +00:00
|
|
|
- FEEDBACK_DISCORD_WEBHOOK
|
2023-08-15 14:05:31 +00:00
|
|
|
- WAITLIST
|
2023-08-24 15:08:32 +00:00
|
|
|
- SUBSCRIPTION_PROVIDER
|
|
|
|
- STRIPE_API_KEY
|
|
|
|
- STRIPE_WEBHOOK_SECRET
|
|
|
|
- STRIPE_PRICE_ID_BASIC_MONTHLY
|
|
|
|
- STRIPE_PRICE_ID_BASIC_YEARLY
|
|
|
|
- STRIPE_PRICE_ID_PRO_MONTHLY
|
|
|
|
- STRIPE_PRICE_ID_PRO_YEARLY
|
|
|
|
- STRIPE_PRICE_ID_ULTIMATE_MONTHLY
|
|
|
|
- STRIPE_PRICE_ID_ULTIMATE_YEARLY
|
2024-04-12 13:48:56 +00:00
|
|
|
- STRIPE_PRICE_ID_DYNAMIC_MONTHLY
|
|
|
|
- STRIPE_PRICE_ID_DYNAMIC_YEARLY
|
2024-02-23 11:59:14 +00:00
|
|
|
- STRIPE_PRICE_ID_BASIC_MONTHLY_OLD
|
|
|
|
- STRIPE_PRICE_ID_BASIC_YEARLY_OLD
|
|
|
|
- STRIPE_PRICE_ID_PRO_MONTHLY_OLD
|
|
|
|
- STRIPE_PRICE_ID_PRO_YEARLY_OLD
|
|
|
|
- STRIPE_PRICE_ID_ULTIMATE_MONTHLY_OLD
|
|
|
|
- STRIPE_PRICE_ID_ULTIMATE_YEARLY_OLD
|
2023-11-13 07:46:17 +00:00
|
|
|
- STRIPE_EXCLUDED_PLANS
|
2023-04-13 13:48:27 +00:00
|
|
|
ports:
|
|
|
|
- "${APP_PORT:-8000}:80"
|
2023-04-28 09:06:55 +00:00
|
|
|
expose:
|
|
|
|
- "${APP_PORT:-8000}"
|
|
|
|
healthcheck:
|
2024-04-17 12:27:51 +00:00
|
|
|
test: curl --fail http://127.0.0.1:80/api/health || exit 1
|
2023-12-05 14:15:01 +00:00
|
|
|
interval: 5s
|
|
|
|
retries: 10
|
2023-04-28 09:06:55 +00:00
|
|
|
timeout: 2s
|
2023-04-13 13:48:27 +00:00
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2023-06-15 09:12:42 +00:00
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2023-04-12 19:23:32 +00:00
|
|
|
postgres:
|
2023-04-13 13:48:27 +00:00
|
|
|
volumes:
|
2023-04-27 13:16:24 +00:00
|
|
|
- coolify-db:/var/lib/postgresql/data
|
2023-04-12 19:23:32 +00:00
|
|
|
environment:
|
2023-06-12 15:49:11 +00:00
|
|
|
POSTGRES_USER: "${DB_USERNAME:-coolify}"
|
2023-04-12 19:23:32 +00:00
|
|
|
POSTGRES_PASSWORD: "${DB_PASSWORD}"
|
2023-06-12 15:49:11 +00:00
|
|
|
POSTGRES_DB: "${DB_DATABASE:-coolify}"
|
2023-12-05 13:56:00 +00:00
|
|
|
healthcheck:
|
2023-04-13 13:48:27 +00:00
|
|
|
test:
|
|
|
|
[
|
|
|
|
"CMD-SHELL",
|
2023-06-12 15:49:11 +00:00
|
|
|
"pg_isready -U ${DB_USERNAME:-coolify}",
|
2023-04-13 13:48:27 +00:00
|
|
|
"-d",
|
2024-07-25 20:04:05 +00:00
|
|
|
"${DB_DATABASE:-coolify}",
|
2023-04-13 13:48:27 +00:00
|
|
|
]
|
2023-12-05 14:15:01 +00:00
|
|
|
interval: 5s
|
|
|
|
retries: 10
|
2023-04-13 13:48:27 +00:00
|
|
|
timeout: 2s
|
2023-05-10 07:26:25 +00:00
|
|
|
redis:
|
|
|
|
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
|
|
|
|
environment:
|
|
|
|
REDIS_PASSWORD: "${REDIS_PASSWORD}"
|
|
|
|
volumes:
|
|
|
|
- coolify-redis:/data
|
|
|
|
healthcheck:
|
|
|
|
test: redis-cli ping
|
2023-12-05 14:15:01 +00:00
|
|
|
interval: 5s
|
|
|
|
retries: 10
|
2023-05-10 07:26:25 +00:00
|
|
|
timeout: 2s
|
2023-12-05 12:56:11 +00:00
|
|
|
soketi:
|
2023-12-05 14:09:46 +00:00
|
|
|
ports:
|
|
|
|
- "${SOKETI_PORT:-6001}:6001"
|
2023-12-05 12:56:11 +00:00
|
|
|
environment:
|
|
|
|
SOKETI_DEBUG: "${SOKETI_DEBUG:-false}"
|
|
|
|
SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID}"
|
|
|
|
SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY}"
|
|
|
|
SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET}"
|
2023-12-05 14:15:01 +00:00
|
|
|
healthcheck:
|
2024-04-17 12:27:51 +00:00
|
|
|
test: wget -qO- http://127.0.0.1:6001/ready || exit 1
|
2023-12-05 14:15:01 +00:00
|
|
|
interval: 5s
|
|
|
|
retries: 10
|
|
|
|
timeout: 2s
|
2023-04-27 13:16:24 +00:00
|
|
|
volumes:
|
|
|
|
coolify-db:
|
|
|
|
name: coolify-db
|
2023-05-10 07:26:25 +00:00
|
|
|
coolify-redis:
|
|
|
|
name: coolify-redis
|