-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
68 lines (64 loc) · 1.51 KB
/
docker-compose.yml
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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.24
environment:
discovery.type: single-node
xpack.security.enabled: 'false'
ES_JAVA_OPTS: -Xms512m -Xmx512m
ports:
- 9200:9200
- 9300:9300
networks:
- foundatio
healthcheck:
interval: 2s
retries: 10
test: curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"'
kibana:
depends_on:
elasticsearch:
condition: service_healthy
image: docker.elastic.co/kibana/kibana:7.17.24
ports:
- 5601:5601
networks:
- foundatio
healthcheck:
interval: 2s
retries: 20
test: curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:5601/api/status
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- "1433:1433" # login with sa:P@ssword1
environment:
- "ACCEPT_EULA=Y"
- "MSSQL_SA_PASSWORD=P@ssword1"
- "MSSQL_PID=Developer"
user: root
networks:
- foundatio
healthcheck:
test:
[
"CMD",
"/opt/mssql-tools/bin/sqlcmd",
"-Usa",
"-PP@ssword1",
"-Q",
"select 1",
]
interval: 1s
retries: 20
ready:
image: andrewlock/wait-for-dependencies
command: elasticsearch:9200
depends_on:
- elasticsearch
- sqlserver
networks:
- foundatio
networks:
foundatio:
driver: bridge
name: foundatio