-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (90 loc) · 2.17 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
93
94
95
96
97
98
version: '3.4'
networks:
polkanalysis_network:
driver: bridge
volumes:
polkanalysis_data:
driver: local
services:
polkanalysis.api:
container_name: Polkanalysis_Api
image: ${DOCKER_REGISTRY-}polkanalysis.api
build:
context: .
dockerfile: api.dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ports:
- 5000:80
depends_on:
- db
networks:
- polkanalysis_network
polkanalysis.webapp:
container_name: Polkanalysis_WebApp
image: ${DOCKER_REGISTRY-}polkanalysis.webapp
build:
context: .
dockerfile: webapp.dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ports:
- 5001:80
depends_on:
- db
networks:
- polkanalysis_network
polkanalysis.worker:
container_name: Polkanalysis_Worker
image: ${DOCKER_REGISTRY-}polkanalysis.worker
build:
context: .
dockerfile: worker.dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
# ports:
# - 5001:80
depends_on:
- db
networks:
- polkanalysis_network
db:
container_name: Polkanalysis_Database
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
expose:
- "5433" # Publishes 5433 to other containers but NOT to host machine
ports:
- "5433:5433"
command: -p 5433
volumes:
- polkanalysis_data:/var/lib/postgresql/data
networks:
- polkanalysis_network
elasticsearch:
container_name: Polkanalysis_Elasticsearch
image : docker.elastic.co/elasticsearch/elasticsearch:8.7.1
ports:
- 9200:9200
volumes:
- polkanalysis_data:/usr/share/elasticsearch/data
environment:
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- discovery.type=single-node
networks:
- polkanalysis_network
kibana:
container_name: Polkanalysis_Kibana
image : docker.elastic.co/kibana/kibana:8.7.1
ports:
- 5601:5601
environment:
- ELASTICSEARCH_URL=http://localhost:9200
depends_on:
- elasticsearch
networks:
- polkanalysis_network