Skip to content

Commit 8d68aa9

Browse files
committed
upgraded directus version to latest
1 parent dd00d38 commit 8d68aa9

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed
Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,65 @@
1-
version: '3'
21
services:
32
database:
4-
image: postgis/postgis:13-master
3+
image: postgis/postgis:13-3.4-alpine
54
# Required when running on platform other than amd64, like Apple M1/M2:
65
# platform: linux/amd64
76
ports:
8-
- 5432:5432
7+
- ${DB_PORT:-5432}:5432
98
volumes:
109
- ./data/database:/var/lib/postgresql/data
1110
environment:
1211
POSTGRES_USER: 'directus'
13-
POSTGRES_PASSWORD: 'directus'
12+
POSTGRES_PASSWORD: "$DB_PASSWORD"
1413
POSTGRES_DB: 'directus'
14+
healthcheck:
15+
test: ["CMD-SHELL", "pg_isready -U directus -d directus"]
16+
interval: 5s
17+
timeout: 5s
18+
retries: 10
19+
start_period: 30s
1520

1621
cache:
1722
image: redis:6
1823

1924
directus:
20-
image: directus/directus:10.13.1
25+
image: directus/directus:latest
2126
ports:
22-
- 8055:8055
27+
- ${APP_PORT:-8055}:8055
2328
volumes:
2429
- ./uploads:/directus/uploads
2530
# If you want to load extensions from the host
2631
- ./extensions:/directus/extensions
2732
depends_on:
28-
- cache
29-
- database
33+
database:
34+
condition: service_healthy
35+
cache:
36+
condition: service_started
37+
restart: unless-stopped
3038
environment:
31-
KEY: '255d861b-5ea1-5996-9aa3-922530ec40b1'
32-
SECRET: '6116487b-cda1-52c2-b5b5-c8022c45e263'
39+
SECRET: "$APP_SECRET"
3340

3441
DB_CLIENT: 'pg'
3542
DB_HOST: 'database'
3643
DB_PORT: '5432'
3744
DB_DATABASE: 'directus'
3845
DB_USER: 'directus'
39-
DB_PASSWORD: 'directus'
46+
DB_PASSWORD: "$DB_PASSWORD"
4047

4148
CACHE_ENABLED: 'false'
4249
CACHE_STORE: 'redis'
4350
REDIS: 'redis://cache:6379'
4451

45-
ADMIN_EMAIL: '[email protected]'
46-
ADMIN_PASSWORD: 'd1r3ctu5'
52+
ADMIN_EMAIL: "$LOGIN_EMAIL"
53+
ADMIN_PASSWORD: "$LOGIN_PASSWORD"
4754

4855
# These is helpful for local developement but should probably be removed in production
4956
CORS_ENABLED: 'true'
5057
EXTENSIONS_AUTO_RELOAD: 'true'
5158

5259
WEBSOCKETS_ENABLED: 'true'
5360
# The default config prevents importing files from 0.0.0.0. See https://docs.directus.io/self-hosted/config-options.html#security . This can be removed in production but in local development it is recommended to keep it so you can import logos from Organization > website.
54-
IMPORT_IP_DENY_LIST: ''
61+
IMPORT_IP_DENY_LIST: '[]'
5562

5663
# Make sure to set this in production
5764
# (see https://docs.directus.io/self-hosted/config-options#general)
58-
# PUBLIC_URL: 'https://directus.example.com'
65+
PUBLIC_URL: "$PUBLIC_URL"

.nuxtignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.directus

0 commit comments

Comments
 (0)