You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `schema-sync` directory will be created in the project root and mounted as a volume. You can edit config files locally and they'll be available in the container.
25
+
26
+
Environment variables can be set in a `.env` file in the `test` directory or passed directly to `docker-compose`:
27
+
28
+
```bash
29
+
SCHEMA_SYNC=BOTH docker-compose up
30
+
```
31
+
32
+
## Using PostgreSQL
33
+
34
+
To use PostgreSQL instead of SQLite:
35
+
36
+
1. Uncomment the `postgres` service in `docker-compose.yml`
37
+
2. Update the environment variables:
38
+
```bash
39
+
DB_CLIENT=pg
40
+
DB_HOST=postgres
41
+
DB_PORT=5432
42
+
DB_DATABASE=directus
43
+
DB_USER=directus
44
+
DB_PASSWORD=directus
45
+
```
46
+
47
+
## Notes
48
+
49
+
- The Dockerfile builds the extension from the local source code
50
+
- Database and uploads are persisted in Docker volumes
51
+
- The extension is automatically loaded when Directus starts
0 commit comments