-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
directus.yml
77 lines (72 loc) · 2.38 KB
/
directus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# DOMAIN=example.com docker stack deploy -c directus.yml directus
services:
directus:
image: directus/directus:${VERSION:-11.1.0}
environment:
- KEY=${KEY:-255d861b-5ea1-5996-9aa3-922530ec40b1}
- ACCESS_TOKEN_TTL=${ACCESS_TOKEN_TTL:-15m}
- SECRET=${SECRET:-6116487b-cda1-52c2-b5b5-c8022c45e263}
- ADMIN_EMAIL=${ADMIN_EMAIL:[email protected]}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-myp@ssw0rd}
- DB_CLIENT=mysql
- DB_HOST=mariadb
- DB_PORT=3306
- DB_DATABASE=directus
- DB_USER=directus
- DB_PASSWORD=myp@ssw0rd
- DB_CHARSET=utf8mb4
- DB_POOL_MIN=number:0
- CACHE_ENABLED=true
- CACHE_STORE=redis
- REDIS_HOST=redis
- EMAIL_SMTP_HOST=${EMAIL_SMTP_HOST}
- EMAIL_SMTP_PORT=${EMAIL_SMTP_PORT:-587}
- EMAIL_SMTP_USER=${EMAIL_SMTP_USER}
- EMAIL_SMTP_PASSWORD=${EMAIL_SMTP_PASSWORD}
- EMAIL_SMTP_SECURE=${EMAIL_SMTP_SECURE:-false}
- EMAIL_SMTP_POOL=${EMAIL_SMTP_POOL:-false}
- EMAIL_TRANSPORT=${EMAIL_TRANSPORT:-smtp}
- EMAIL_FROM=${EMAIL_FROM}
- LOG_LEVEL=${LOG_LEVEL:-info}
- PUBLIC_URL=${SCHEME:-https}://${DOMAIN:-directus.localhost}
volumes:
- ${VOLUME_PATH}extensions:/directus/extensions
- ${VOLUME_PATH}uploads:/directus/uploads
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.directus-${NUMBER:-1}.rule=Host(`${DOMAIN:-directus.localhost}`)
- traefik.http.routers.directus-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.directus-${NUMBER:-1}.service=directus-${NUMBER:-1}
- traefik.http.routers.directus-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.directus-${NUMBER:-1}.loadbalancer.server.port=8055
networks:
- internal
- traefik
redis:
image: redis:6-alpine
networks:
- internal
mariadb:
image: mariadb:10.5.9
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
- MYSQL_DATABASE=directus
- MYSQL_USER=directus
- MYSQL_PASSWORD=myp@ssw0rd
networks:
- internal
volumes:
mariadb:
extensions:
uploads:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net