-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
99 lines (97 loc) · 2.69 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
services:
eliteapi:
image: eliteapi:latest
build:
context: .
dockerfile: EliteAPI/Dockerfile
env_file:
- ./EliteAPI/.env
environment:
- POSTGRES_CONNECTION="Server=database;Port=5432;Database=${POSTGRES_DB:-eliteapi};Username=${POSTGRES_USER:-user};Password=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD env variable is required};Include Error Detail=true"
depends_on:
- database
- cache
- logging
- prometheus
ports:
- "7008:7008"
- "9102:9102"
volumes:
- ./EliteAPI/TempKeys:/app/TempKeys
networks:
- eliteapi-network
database:
image: timescale/timescaledb:latest-pg15
restart: always
command: -c 'max_connections=${POSTGRES_MAX_CONNECTIONS:-100}'
ports:
- '${POSTGRES_PORT:?POSTGRES_PORT env variable is required}:5432'
expose:
- '${POSTGRES_PORT:?POSTGRES_PORT env variable is required}'
volumes:
- db-data:/var/lib/postgresql/data
- ./EliteAPI/Data/setup.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- eliteapi-network
cache:
image: redis:7.4.1
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD:?REDIS_PASSWORD env variable is required}
ports:
- '${REDIS_PORT:?REDIS_PORT env variable is required}:6379'
expose:
- '${REDIS_PORT:?REDIS_PORT env variable is required}'
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.55.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.8-alpine
restart: unless-stopped
env_file:
- .env
ports:
- '5672:5672'
- '15672:15672'
expose:
- '5672'
- '15672'
networks:
- eliteapi-network
networks:
eliteapi-network:
name: elite-network
driver: bridge
volumes:
db-data: {}
grafana-data: {}
prometheus-data: {}
redis-data: {}