forked from EliteFarmers/API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (100 loc) · 2.47 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
99
100
101
102
103
version: '3.8'
services:
eliteapi:
image: eliteapi:latest
build:
context: .
dockerfile: EliteAPI/Dockerfile
env_file:
- ./EliteAPI/.env
environment:
- POSTGRES_CONNECTION="Server=database;Port=5432;Database=eliteapi;Username=user;Password=postgres123;Include Error Detail=true"
depends_on:
- database
- cache
- logging
- prometheus
ports:
- "7008:7008"
- "9102:9102"
networks:
- eliteapi-network
database:
image: timescale/timescaledb:latest-pg15
restart: always
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=postgres123
- POSTGRES_DB=eliteapi
ports:
- '5436:5432'
expose:
- '5436'
volumes:
- db-data:/var/lib/postgresql/data
- ./EliteAPI/Data/setup.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- eliteapi-network
cache:
image: redis:7.0.11
restart: always
ports:
- '6380:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass redisCachePassword123
expose:
- '6379'
volumes:
- redis-data:/data
networks:
- eliteapi-network
logging:
image: grafana/grafana-oss:latest
restart: unless-stopped
ports:
- '8081:3000'
expose:
- '8081'
volumes:
- ./EliteAPI/Data/Grafana/Datasources:/etc/grafana/provisioning/datasources
- ./EliteAPI/Data/Grafana/Dashboards:/etc/grafana/provisioning/dashboards
- ./EliteAPI/Data/Grafana/config.ini:/etc/grafana/config.ini
- grafana-data:/var/lib/grafana
depends_on:
- prometheus
networks:
- eliteapi-network
prometheus:
image: prom/prometheus:v2.43.1
restart: unless-stopped
ports:
- '9090:9090'
expose:
- '9090'
volumes:
- ./EliteAPI/Data/Prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/data
networks:
- eliteapi-network
rabbit:
image: rabbitmq:3-management
restart: unless-stopped
ports:
- '5672:5672'
- '15672:15672'
expose:
- '5672'
- '15672'
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=rabbitPassword123
networks:
- eliteapi-network
networks:
eliteapi-network:
name: elite-network
driver: bridge
volumes:
db-data: {}
grafana-data: {}
prometheus-data: {}
redis-data: {}