Created
February 16, 2024 11:19
-
-
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,…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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