-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
75 lines (66 loc) · 1.69 KB
/
compose.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
version: "3"
services:
caddy:
image: caddy:2.7
restart: always
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/data:/data
- ./caddy/config:/config
database:
restart: always
image: postgis/postgis:13-master
volumes:
- ./data/database:/var/lib/postgresql/data
environment:
POSTGRES_USER: "directus"
POSTGRES_PASSWORD_FILE: "/run/secrets/database_password"
POSTGRES_DB: "directus"
secrets:
- database_password
cache:
restart: always
image: redis:6
directus:
restart: always
build: ./directus
ports:
- 8055:8055
volumes:
- ./directus/uploads:/directus/uploads
depends_on:
- cache
- database
environment:
KEY: "255d861b-5ea1-5996-9aa3-922530ec40b1"
SECRET_FILE: "/run/secrets/directus_secret_key"
LOG_LEVEL: "error"
DB_CLIENT: "pg"
DB_HOST: "database"
DB_PORT: "5432"
DB_DATABASE: "directus"
DB_USER: "directus"
DB_PASSWORD_FILE: "/run/secrets/database_password"
CACHE_ENABLED: "true"
CACHE_STORE: "redis"
REDIS: "redis://cache:6379"
ADMIN_EMAIL: "[email protected]"
ADMIN_PASSWORD_FILE: "/run/secrets/directus_admin_password"
# PUBLIC_URL: "https://directus.example.com"
secrets:
- database_password
- directus_secret_key
- directus_admin_password
secrets:
database_password:
file: ./secrets/database_password.txt
directus_secret_key:
file: ./secrets/directus_secret_key.txt
directus_admin_password:
file: ./secrets/directus_admin_password.txt