-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 1.95 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
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
services:
postgres:
image: pgvector/pgvector:pg18
shm_size: 128mb
environment:
POSTGRES_DB: django
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD", "pg_isready", "--username", "postgres"]
start_period: 30s
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres:/var/lib/postgresql
elasticsearch:
image: elasticsearch:9.0.2
environment:
ES_JAVA_OPTS: "-Xms250m -Xmx750m"
discovery.type: single-node
xpack.security.enabled: "true"
ELASTIC_PASSWORD: elastic
cluster.routing.allocation.disk.threshold_enabled: "false"
healthcheck:
test: ["CMD", "curl", "--fail", "--user", "elastic:elastic", "http://localhost:9200/"]
start_period: 30s
ports:
- "${ELASTICSEARCH_PORT:-9200}:9200"
volumes:
- elasticsearch:/usr/share/elasticsearch/data
rabbitmq:
image: rabbitmq:management-alpine
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
start_period: 30s
ports:
- "${RABBITMQ_PORT:-5672}:5672"
- "${RABBITMQ_MGMT_PORT:-15672}:15672"
volumes:
- rabbitmq:/var/lib/rabbitmq
minio:
image: minio/minio:latest
# When run with a TTY, minio prints credentials on startup
tty: true
command: ["server", "/data", "--console-address", ":9001"]
environment:
MINIO_ROOT_USER: minioAccessKey
MINIO_ROOT_PASSWORD: minioSecretKey
healthcheck:
test: ["CMD", "mc", "ready", "local"]
# "mc ready" doesn't terminate on failure, so time it out
timeout: 1s
start_period: 30s
ports:
- "${MINIO_API_PORT:-9000}:9000"
- "${MINIO_CONSOLE_PORT:-9001}:9001"
volumes:
- minio:/data
redis:
image: redis:alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
start_period: 30s
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis:/data
volumes:
postgres:
elasticsearch:
minio:
rabbitmq:
redis: