Compare commits

..

No commits in common. "15d4cd5b9b52591b2a4985420e3bcf8456ad9088" and "cb46478b0e22c17a0cc29ea542df6da711e1e62c" have entirely different histories.

9 changed files with 5 additions and 132 deletions

View File

@ -1,2 +0,0 @@
**/node_modules
**/.next

View File

@ -1,41 +0,0 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
[*.{ts,tsx,js,jsx,json}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
indent_size = 2
[{Dockerfile,docker-compose.yml,docker-compose.*.yml,compose.yml,compose.*.yml}]
indent_style = space
indent_size = 2
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[*.sh]
end_of_line = lf
indent_style = space
indent_size = 2
[package.json]
indent_style = space
indent_size = 2
[*.{xml,config,conf}]
indent_style = space
indent_size = 2
[Makefile]
indent_style = tab

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
**/node_modules
**/.next

View File

@ -1,6 +0,0 @@
---
name: ${CMS_PROJECT_NAME:-cms}
include:
- services/database/compose.yml
- services/directus/compose.yml

View File

@ -1,3 +0,0 @@
[tools]
node = "18.20.7"
yarn = "1.22.22"

View File

@ -1,48 +0,0 @@
---
services:
postgres:
image: 'postgres:17.4-bookworm'
hostname: ${CMS_POSTGRES_HOST:-postgres}
init: true
restart: unless-stopped
healthcheck:
test:
- CMD-SHELL
- pg_isready
- --hostname
- localhost
- --username
- ${CMD_POSTGRES_USER:-postgres}
interval: 10s
timeout: 5s
retries: 5
start_interval: 5s
start_period: 30s
environment:
POSTGRES_USER: ${CMS_POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${CMS_POSTGRES_PASSWORD:-postgres}
volumes:
- 'postgres_data:/var/lib/postgresql/data'
- './scripts/postgres:/docker-entrypoint-initdb.d'
# NOTE: (jpd) this is an open-source alternative to redis
valkey:
image: 'valkey/valkey:8.0.2-bookworm'
hostname: ${CMS_VALKEY_HOST:-valkey}
init: true
restart: unless-stopped
healthcheck:
test:
- CMD-SHELL
- '[ $$(redis-cli ping) = "PONG" ]'
interval: 10s
timeout: 5s
retries: 5
start_interval: 5s
start_period: 30s
volumes:
- 'valkey_data:/data'
volumes:
postgres_data: {}
valkey_data: {}

View File

@ -1,7 +0,0 @@
#!/usr/bin/env bash
set -ex
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE DATABASE strapi;
GRANT ALL PRIVILEGES ON DATABASE strapi TO ${POSTGRES_USER};
EOSQL

View File

@ -1,7 +0,0 @@
#!/usr/bin/env bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE DATABASE directus;
GRANT ALL PRIVILEGES ON DATABASE strapi TO ${POSTGRES_USER};
EOSQL

View File

@ -1,36 +1,25 @@
---
services:
directus:
image: 'directus/directus:11.5.1'
image: 'directus/directus:11.3.2'
hostname: directus
init: true
restart: unless-stopped
ports:
- ${CMS_DIRECTUS_PORTS:-8055:8055}
depends_on:
postgres:
condition: service_healthy
valkey:
condition: service_healthy
volumes:
- 'database:/directus/database'
- 'uploads:/directus/uploads'
- 'extensions:/directus/extensions'
environment:
SECRET: ${CMS_DIRECTUS_SECRET:-replace-with-random-value}
ADMIN_EMAIL: ${CMS_DIRECTUS_ADMIN_EMAIL:-admin@example.com}
ADMIN_PASSWORD: ${CMS_DIRECTUS_ADMIN_PASSWORD:-d1r3ctu5}
CACHE_ENABLED: 'true'
CACHE_AUTO_PURGE: 'true'
CACHE_STORE: redis
REDIS: ${CMS_VALKEY_URI:-redis://valkey:6379}
DB_CLIENT: pg
DB_USER: ${CMS_POSTGRES_USER:-postgres}
DB_PASSWORD: ${CMS_POSTGRES_PASSWORD:-postgres}
DB_HOST: ${CMS_POSTGRES_HOST:-postgres}
DB_PORT: ${CMS_POSTGRES_PORT:-5432}
DB_DATABASE: directus
DB_CLIENT: sqlite3
DB_FILENAME: /directus/database/data.db
WEBSOCKETS_ENABLED: 'true'
volumes:
database: {}
extensions: {}
uploads: {}