generated from iayti/CleanArchitecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 1.92 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
version: "3.4"
services:
webapi:
image: ${DOCKER_REGISTRY-}webapi
build:
context: .
dockerfile: src/Apps/WebApi/Dockerfile
environment:
- "UseInMemoryDatabase=false"
- "ConnectionStrings__DefaultConnection=Server=localhost,21433; Database=CleanArchitectureDB; User Id = SA; Password=TestMaster_1850; MultipleActiveResultSets=true;"
- "IdentityServer__Key__Type=Development"
- "ASPNETCORE_Kestrel__Certificates__Default__Password=TestMaster_1850"
- "ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx"
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5000:5000"
- "5001:5001"
restart: on-failure
networks:
- micro-services
links:
- sql-server-db
depends_on:
- sql-server-db
sql-server-db:
container_name: sql-server-db
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- "21433:1433"
environment:
SA_PASSWORD: "TestMaster_1850"
ACCEPT_EULA: "Y"
restart: unless-stopped
networks:
- micro-services
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es01
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
restart: unless-stopped
networks:
- micro-services
kib01:
image: docker.elastic.co/kibana/kibana:7.9.2
container_name: kib01
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://es01:9200
ELASTICSEARCH_HOSTS: http://es01:9200
restart: unless-stopped
networks:
- micro-services
volumes:
data01:
driver: local
networks:
micro-services:
driver: bridge