Files
ServerKit/backend/templates/strapi.yaml
T
Juan Denis 3ca6bd23a9 Update template icons and enhance sidebar user menu
Switched all template icon URLs to use local /serverkit.ai/imgs/template-icons/ assets for consistency and reliability. Improved the Sidebar component with a new user context menu featuring theme switching, settings navigation, and logout, along with conditional display of the WordPress pipeline link. Added and updated related styles for the sidebar, user menu, and page headers, and introduced new theme variables for code/terminal backgrounds.
2026-01-27 20:53:57 -05:00

91 lines
2.0 KiB
YAML

id: strapi
name: Strapi
version: "4.15"
description: Open-source headless CMS with customizable API and admin panel
icon: https://serverkit.ai/imgs/template-icons/strapi.svg
website: https://strapi.io
documentation: https://docs.strapi.io
categories:
- cms
- headless
- api
variables:
- name: HTTP_PORT
description: HTTP port
type: port
default: "1337"
hidden: true
- name: APP_KEYS
description: Application keys
type: password
generate: password
- name: API_TOKEN_SALT
description: API token salt
type: password
generate: password
- name: ADMIN_JWT_SECRET
description: Admin JWT secret
type: password
generate: password
- name: JWT_SECRET
description: JWT secret
type: password
generate: password
- name: DB_PASSWORD
description: PostgreSQL password
type: password
generate: password
ports:
- port: 1337
protocol: tcp
description: API and admin panel
volumes:
- name: app
path: /opt/app
description: Strapi application
- name: db
path: /var/lib/postgresql/data
description: PostgreSQL data
compose:
services:
strapi:
image: strapi/strapi:${VERSION:-4.15}
container_name: ${APP_NAME}
restart: unless-stopped
environment:
- DATABASE_CLIENT=postgres
- DATABASE_HOST=db
- DATABASE_PORT=5432
- DATABASE_NAME=strapi
- DATABASE_USERNAME=strapi
- DATABASE_PASSWORD=${DB_PASSWORD}
- APP_KEYS=${APP_KEYS}
- API_TOKEN_SALT=${API_TOKEN_SALT}
- ADMIN_JWT_SECRET=${ADMIN_JWT_SECRET}
- JWT_SECRET=${JWT_SECRET}
volumes:
- strapi_app:/opt/app
ports:
- "${HTTP_PORT}:1337"
depends_on:
- db
db:
image: postgres:15-alpine
container_name: ${APP_NAME}-db
restart: unless-stopped
environment:
- POSTGRES_USER=strapi
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=strapi
volumes:
- strapi_db:/var/lib/postgresql/data
volumes:
strapi_app:
strapi_db: