Created
May 1, 2025 22:46
-
-
Save AndreXime/974439548cb1e7017fc165b7a472a23a to your computer and use it in GitHub Desktop.
Docker Compose setup for Directus, an open-source headless CMS that provides an API with an admin panel.
This file contains hidden or 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
| services: | |
| postgres: | |
| image: postgres:latest | |
| environment: | |
| POSTGRES_DB: directus | |
| POSTGRES_USER: directus | |
| POSTGRES_PASSWORD: directus | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| networks: | |
| - directus_net | |
| directus: | |
| image: directus/directus:latest | |
| ports: | |
| - 8055:8055 | |
| environment: | |
| SECRET: U8LA7KY942ANGLNQJ93T08PDIK | |
| ADMIN_EMAIL: 'admin@email.com' | |
| ADMIN_PASSWORD: 'password@' | |
| ADMIN_FIRST_NAME: 'Admin' | |
| ADMIN_LAST_NAME: '' | |
| DB_CLIENT: pg | |
| DB_HOST: postgres | |
| DB_PORT: 5432 | |
| DB_DATABASE: directus | |
| DB_USER: directus | |
| DB_PASSWORD: directus | |
| depends_on: | |
| - postgres | |
| networks: | |
| - directus_net | |
| volumes: | |
| postgres_data: | |
| networks: | |
| directus_net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment