2023-04-12 19:23:32 +00:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
coolify:
|
2023-05-25 12:21:49 +00:00
|
|
|
image: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-4.0.0-nightly.0}"
|
2023-04-27 10:09:41 +00:00
|
|
|
volumes:
|
2023-04-28 09:00:21 +00:00
|
|
|
- type: bind
|
|
|
|
source: /data/coolify/source/.env
|
|
|
|
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
|
|
|
|
- /data/coolify/deployments:/var/www/html/storage/app/deployments
|
2023-04-12 19:23:32 +00:00
|
|
|
environment:
|
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
|
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-07-14 11:58:05 +00:00
|
|
|
- SELF_HOSTED
|
|
|
|
- LEMON_SQUEEZY_WEBHOOK_SECRET
|
2023-07-27 14:22:13 +00:00
|
|
|
- LEMON_SQUEEZY_CHECKOUT_ID_1
|
|
|
|
- LEMON_SQUEEZY_CHECKOUT_ID_2
|
|
|
|
- LEMON_SQUEEZY_CHECKOUT_ID_3
|
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:
|
|
|
|
test: curl --fail http://localhost:80/api/health || exit 1
|
|
|
|
interval: 4s
|
|
|
|
retries: 5
|
|
|
|
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-04-13 13:48:27 +00:00
|
|
|
healthcheck:
|
|
|
|
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",
|
2023-06-12 15:49:11 +00:00
|
|
|
"${DB_DATABASE:-coolify}"
|
2023-04-13 13:48:27 +00:00
|
|
|
]
|
2023-04-27 13:26:43 +00:00
|
|
|
interval: 2s
|
2023-04-13 13:48:27 +00:00
|
|
|
retries: 5
|
|
|
|
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
|
|
|
|
interval: 2s
|
|
|
|
retries: 5
|
|
|
|
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
|