-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
46 lines (44 loc) · 1.14 KB
/
compose.yml
File metadata and controls
46 lines (44 loc) · 1.14 KB
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
services:
db:
container_name: pkrbt-db
image: postgres:16-alpine
environment:
POSTGRES_DB: pkrbt
POSTGRES_PASSWORD: pkrbt
POSTGRES_USER: pkrbt
volumes:
- ./vars/postgres:/var/lib/postgresql/data:rw
env_file: .env.local
healthcheck:
test: ["CMD", "pg_isready", "--host=localhost", "--username=pkrbt"]
interval: 10s
timeout: 5s
retries: 5
start_interval: 5s
start_period: 30s
redis:
container_name: pkrbt-redis
image: redis:7-alpine
healthcheck:
test: ["CMD-SHELL", "[ $$(redis-cli ping) = 'PONG' ]"]
interval: 10s
timeout: 5s
retries: 5
start_interval: 5s
start_period: 30s
directus:
container_name: pkrbt-api
image: directus/directus:11.1.1
# image: tractr/directus-sync:latest
ports:
- 8055:8055
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./vars/directus/database:/directus/database
- ./vars/directus/uploads:/directus/uploads
- ./vars/directus/extensions:/directus/extensions
env_file: .env.local