-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (79 loc) · 1.91 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3.9"
services:
db:
image: "mcr.microsoft.com/mssql/server:2019-latest"
container_name: "sqlserver"
expose:
- 1433
environment:
SA_PASSWORD: "P@ssw0rd"
ACCEPT_EULA: "Y"
volumes:
- sqlvolume:/var/opt/mssql
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$$SA_PASSWORD" -Q "SELECT 1" -b || exit 1
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
search:
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
container_name: elasticsearch
restart: on-failure
environment:
- node.name=elasticsearch
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
healthcheck:
test: curl -s -f http://localhost:9200/_cluster/health || exit 1
interval: 30s
timeout: 10s
retries: 5
ulimits:
memlock:
soft: -1
hard: -1
expose:
- 9200
logserver:
image: docker.elastic.co/kibana/kibana:7.12.0
container_name: kibana
depends_on:
- search
ports:
- 5601:5601
restart: on-failure
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
healthcheck:
test: curl -s -f http://localhost:5601 >/dev/null
interval: 30s
timeout: 5s
retries: 3
cache:
image: "redis"
container_name: "rediscache"
expose:
- 6379
healthcheck:
test: if ping="$$(redis-cli -h localhost ping)" && [ "$$ping" = 'PONG' ]; then exit 0; else exit 1; fi
interval: 30s
timeout: 5s
retries: 3
webapi:
build: "."
container_name: "tendermanagement-api"
restart: on-failure
ports:
- 8000:80
depends_on:
- db
- cache
- logserver
environment:
DOTNET_ENVIRONMENT: "Container"
volumes:
sqlvolume:
external: true