101 lines
2.8 KiB
YAML
101 lines
2.8 KiB
YAML
services:
|
|
postgresql:
|
|
image: 'postgis/postgis:16-3.4-alpine'
|
|
# MAX LIMIT: Allow 200 concurrent connections
|
|
command: postgres -c 'max_connections=200'
|
|
restart: always
|
|
volumes:
|
|
- 'postgres-data:/var/lib/postgresql/data'
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: ${DB_DATABASE}
|
|
healthcheck:
|
|
# SELF-CHECK: Uses 127.0.0.1 to check ITSELF inside the container (not external)
|
|
test: [ "CMD-SHELL", "pg_isready -h 127.0.0.1" ]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
redis:
|
|
image: 'redis:7-alpine'
|
|
command: 'redis-server --appendonly yes'
|
|
restart: always
|
|
volumes:
|
|
- 'redis-data:/data'
|
|
healthcheck:
|
|
test: [ "CMD", "redis-cli", "ping" ]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
directus:
|
|
image: 'directus/directus:11'
|
|
restart: always
|
|
volumes:
|
|
- 'directus-uploads:/directus/uploads'
|
|
- 'directus-extensions:/directus/extensions'
|
|
environment:
|
|
KEY: ${KEY}
|
|
SECRET: ${SECRET}
|
|
ADMIN_EMAIL: ${ADMIN_EMAIL}
|
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
|
|
DB_CLIENT: postgres
|
|
DB_HOST: postgresql
|
|
DB_PORT: 5432
|
|
DB_DATABASE: ${DB_DATABASE}
|
|
DB_USER: ${DB_USER}
|
|
DB_PASSWORD: ${DB_PASSWORD}
|
|
|
|
# --- LIMITS MAXED OUT ---
|
|
MAX_PAYLOAD_SIZE: '500mb'
|
|
RATE_LIMITER_ENABLED: 'false' # False = Infinite/Unlimited
|
|
|
|
# --- CORS / SECURITY ---
|
|
# This allows your LIVE site AND your LOCAL laptop to talk to the DB
|
|
CORS_ORIGIN: 'https://launch.jumpstartscaling.com,http://localhost:4321'
|
|
CORS_ENABLED: 'true'
|
|
PUBLIC_URL: 'https://spark.jumpstartscaling.com'
|
|
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: [ "CMD", "wget", "--spider", "--no-verbose", "http://127.0.0.1:8055/server/health" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
# PATIENCE: Give Directus 3 minutes to start before giving up
|
|
start_period: 180s
|
|
labels:
|
|
coolify.managed: 'true'
|
|
coolify.name: 'directus'
|
|
coolify.fqdn: 'spark.jumpstartscaling.com'
|
|
coolify.port: '8055'
|
|
|
|
frontend:
|
|
build:
|
|
# MAGIC URL: Repo URL + #Branch + :Subfolder
|
|
context: https://gitthis.jumpstartscaling.com/gatekeeper/net.git#main:frontend
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
environment:
|
|
PUBLIC_DIRECTUS_URL: 'https://spark.jumpstartscaling.com'
|
|
DIRECTUS_ADMIN_TOKEN: ${DIRECTUS_ADMIN_TOKEN}
|
|
PUBLIC_PLATFORM_DOMAIN: 'launch.jumpstartscaling.com'
|
|
depends_on:
|
|
- directus
|
|
labels:
|
|
coolify.managed: 'true'
|
|
coolify.name: 'frontend'
|
|
coolify.fqdn: 'launch.jumpstartscaling.com'
|
|
coolify.port: '4321'
|
|
|
|
volumes:
|
|
postgres-data:
|
|
redis-data:
|
|
directus-uploads:
|
|
directus-extensions:
|