Skip to content

Instantly share code, notes, and snippets.

@CodeLeom
Created February 16, 2024 11:19
Show Gist options
  • Save CodeLeom/496abcfe5300c4680d1aa218e617d197 to your computer and use it in GitHub Desktop.
Save CodeLeom/496abcfe5300c4680d1aa218e617d197 to your computer and use it in GitHub Desktop.
This file is used to setup directus locally on your machine. Create a folder called `directus`, inside the folder, create three more folders called `database`, `uploads`, and `extensions` respectively. Then create a file called `docker-compose.yml` in the directus folder as well. Paste this code inside the `yml` file. Open your terminal and run,…
version: "3"
services:
directus:
image: directus/directus:10.9.2
ports:
- 8055:8055
volumes:
- ./database:/directus/database
- ./uploads:/directus/uploads
- ./extensions:/directus/extensions
environment:
KEY: "replace-with-random-value"
SECRET: "replace-with-random-value"
ADMIN_EMAIL: "admin@example.com"
ADMIN_PASSWORD: "d1r3ctu5"
DB_CLIENT: "sqlite3"
DB_FILENAME: "/directus/database/data.db"
WEBSOCKETS_ENABLED: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment