-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (78 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
84 lines (78 loc) · 2.02 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
78
79
80
81
82
83
84
name: ${PROJECT_NAME:-myhub}
services:
postgres:
image: postgres:16-alpine
ports:
- "${POSTGRES_PORT:-5432}:5432"
environment:
POSTGRES_USER: eigenflux
POSTGRES_PASSWORD: eigenflux123
POSTGRES_DB: eigenflux
healthcheck:
test: ["CMD-SHELL", "pg_isready -U eigenflux -d eigenflux"]
interval: 5s
timeout: 5s
retries: 5
networks:
- eigenflux-net
redis:
image: redis:7-alpine
ports:
- "${REDIS_PORT:-6379}:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- eigenflux-net
etcd:
image: quay.io/coreos/etcd:v3.5.17
ports:
- "${ETCD_PORT:-2379}:2379"
environment:
ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 5s
timeout: 5s
retries: 5
networks:
- eigenflux-net
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0
ports:
- "${ELASTICSEARCH_HTTP_PORT:-9200}:9200"
- "${ELASTICSEARCH_TRANSPORT_PORT:-9300}:9300"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- eigenflux-net
kibana:
image: docker.elastic.co/kibana/kibana:8.11.0
ports:
- "${KIBANA_PORT:-5601}:5601"
environment:
ELASTICSEARCH_HOSTS: "http://elasticsearch:9200"
XPACK_SECURITY_ENABLED: "false"
depends_on:
elasticsearch:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:5601/api/status || exit 1"]
interval: 10s
timeout: 5s
retries: 10
networks:
- eigenflux-net
networks:
eigenflux-net:
driver: bridge