-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
105 lines (98 loc) · 2.45 KB
/
compose.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# runs the engine on port 3000
services:
# Engine
engine:
image: ghcr.io/v3xlabs/v3x-property/engine:master
pull_policy: always
ports:
- "3000:3000"
env_file: .env
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info
depends_on:
postgres:
condition: service_healthy
keycloak-healthcheck:
condition: service_healthy
# Database
postgres:
image: postgres:17
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: property
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 5s
retries: 5
# Keycloak
keycloak:
image: quay.io/keycloak/keycloak:26.0
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/postgres
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: postgres
KC_HOSTNAME: keycloak
KC_HOSTNAME_PORT: 8080
KC_HOSTNAME_STRICT: false
KC_HOSTNAME_STRICT_HTTPS: false
KC_LOG_LEVEL: info
KC_METRICS_ENABLED: true
KC_HEALTH_ENABLED: true
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
command:
- start-dev
- --import-realm
volumes:
- ./engine/.build/realm-export.json:/opt/keycloak/data/import/realm-export.json
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
keycloak-healthcheck:
image: curlimages/curl
command: ["sleep", "infinity"]
healthcheck:
test: ["CMD", "curl", "--head", "-fsS", "http://keycloak:9000/health/ready"]
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
meilisearch:
image: getmeili/meilisearch:v1.11
environment:
MEILI_MASTER_KEY: master
ports:
- "7700:7700"
volumes:
- ./meili-data:/meili_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
interval: 5s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
command: server --console-address ":9001" /mnt/data
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./minio-data:/data
healthcheck:
test: ["CMD", "curl", "-I", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5