Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: init directus #3

Open
sdkaraarslan opened this issue Aug 23, 2023 · 0 comments
Open

chore: init directus #3

sdkaraarslan opened this issue Aug 23, 2023 · 0 comments
Assignees

Comments

@sdkaraarslan
Copy link
Collaborator

---
version: '3'
services:
  directus:
    user: root
    image: directus/directus:latest
    ports:
      - 8055:8055
    volumes:
      - ./directus/uploads:/directus/uploads
      - ./directus/extensions:/directus/extensions
      - ./directus/database:/directus/database
    env_file: directus/.env
  • Create a directus folder and inside it, create uploads, extensions and database folders.
  • Create a .env inside directus folder. For example:
KEY='bc75c62a-f23f-43f5-b0fd-44b22ef1362d'
SECRET='930e1e2e-86c7-449f-8847-656715809450'

DB_CLIENT='sqlite3'
DB_FILENAME='./database/database.sqlite'

ADMIN_EMAIL='[email protected]'
ADMIN_PASSWORD='Example1234!'

EMAIL_VERIFY_SETUP=false

CORS_ENABLED=true
CORS_ORIGIN=http://localhost:3000

PASSWORD_RESET_URL_ALLOW_LIST=http://localhost:3000/auth/reset-password
USER_INVITE_URL_ALLOW_LIST=http://localhost:3000/auth/complete-registration
PUBLIC_URL=http://localhost:3000
  • Then run docker compose up -d directus
@sdkaraarslan sdkaraarslan self-assigned this Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant