-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.17 KB
/
docker-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
name: directus
services:
cache:
image: redis:6
database:
environment:
POSTGRES_DB: directus
POSTGRES_PASSWORD: ${DB_PASSWORD:-directus}
POSTGRES_USER: ${DB_USER:-directus}
image: postgis/postgis:13-master
networks:
- default
volumes:
- postgres_data:/var/lib/postgresql/data
directus:
depends_on:
cache:
condition: service_started
database:
condition: service_started
environment:
ADMIN_EMAIL: ${ADMIN_EMAIL:[email protected]}
CACHE_ENABLED: "true"
REDIS: redis://cache:6379
CACHE_STORE: redis
DB_CLIENT: pg
DB_DATABASE: directus
DB_HOST: database
DB_PASSWORD: ${DB_PASSWORD:-directus}
DB_PORT: "5432"
DB_USER: ${DB_USER:-directus}
KEY: ${KEY:-08e94891-eb01-4ec8-929c-84da769e59df}
SECRET: ${SECRET:-577ff8ab-12ef-44dc-baec-098240acbd4e}
image: directus/directus:latest
ports:
- mode: ingress
target: 8055
published: "8055"
protocol: tcp
networks:
- default
volumes:
- ./snapshot.yaml:/directus/snapshot.yaml
- ${DATA_PATH:-.}/uploads:/directus/uploads
volumes:
postgres_data: