-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (59 loc) · 1.99 KB
/
docker-compose.yml
File metadata and controls
60 lines (59 loc) · 1.99 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
version: '3'
services:
postgres:
image: 'postgres:16.3'
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: vocabulary-leveling
restart: unless-stopped
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
restart: unless-stopped
minio:
image: minio/minio:RELEASE.2024-06-04T19-20-08Z
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
entrypoint: >
/bin/sh -c '
isAlive() { curl -sf http://127.0.0.1:9000/minio/health/live; } # check if Minio is alive
minio $0 "$@" --quiet & echo $! > /tmp/minio.pid # start Minio in the background
while ! isAlive; do sleep 0.1; done # wait until Minio is alive
mc alias set minio http://127.0.0.1:9000 minioadmin minioadmin # setup Minio client
mc mb minio/default || true # create a default bucket
kill -s INT $(cat /tmp/minio.pid) && rm /tmp/minio.pid # stop Minio
while isAlive; do sleep 0.1; done # wait until Minio is stopped
exec minio $0 "$@" # start Minio in the foreground
'%
restart: unless-stopped
elasticsearch:
build:
context: .
dockerfile: Elasticsearch.Dockerfile
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "ELASTIC_USERNAME=elastic"
- "ELASTIC_PASSWORD=root"
- "xpack.security.enrollment.enabled=false"
- "xpack.security.enabled=false"
restart: unless-stopped
redis:
image: redis:7.2.5-bookworm
environment:
- REDIS_PASSWORD=root
ports:
- "6379:6379"
restart: unless-stopped