-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (83 loc) · 1.81 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
85
86
87
88
89
90
91
92
version: '3.8'
services:
app:
image: musakucuk99/referenceapi:1.1
container_name: app
ports:
- "8081:8080"
- "8082:443"
depends_on:
- postgres
- seq
- redis
- consul
environment:
ASPNETCORE_ENVIRONMENT: Docker
postgres:
image: postgres:13
container_name: database
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mydatabase
volumes:
- postgresql_reference_api:/var/lib/postgresql
- postgresql_reference_api_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
seq:
image: datalust/seq
container_name: log
ports:
- "5341:80"
environment:
ACCEPT_EULA: Y
volumes:
- seq_data:/data
redis:
image: redis
container_name: cache
ports:
- "6379:6379"
volumes:
- redis-data:/data
consul:
image: consul:1.15.4
container_name: consul
ports:
- "8500:8500"
volumes:
- consul-data:/consul/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.0
container_name: elasticsearch
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
kibana:
image: docker.elastic.co/kibana/kibana:7.14.0
container_name: kibana
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- "5601:5601"
depends_on:
- elasticsearch
volumes:
postgresql_reference_api:
postgresql_reference_api_data:
seq_data:
redis-data:
consul-data:
esdata:
driver: local