Image:
strapi/strapi:latest Launchfile
View on GitHub
# yaml-language-server: $schema=https://launchfile.dev/schema/v1
version: launch/v1
name: strapi
description: "Open-source headless CMS"
image: strapi/strapi:latest
provides:
- protocol: http
port: 1337
exposed: true
requires:
- type: postgres
set_env:
DATABASE_HOST: $host
DATABASE_PORT: $port
DATABASE_NAME: $name
DATABASE_USERNAME: $user
DATABASE_PASSWORD: $password
env:
DATABASE_CLIENT:
default: "postgres"
APP_KEYS:
generator: secret
sensitive: true
description: "Session keys for Strapi"
API_TOKEN_SALT:
generator: secret
sensitive: true
ADMIN_JWT_SECRET:
generator: secret
sensitive: true
TRANSFER_TOKEN_SALT:
generator: secret
sensitive: true
JWT_SECRET:
generator: secret
sensitive: true
storage:
uploads:
path: /opt/app/public/uploads
persistent: true
health: /_health
restart: always Required Services
postgres
Learn More
Spec references for features used in this Launchfile.