forked from thalyssondel/sensorflow-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
72 lines (68 loc) · 1.83 KB
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
version: '3.8'
services:
# 1. SERVIÇO DO BANCO DE DADOS POSTGRESQL
db:
image: postgres:16
container_name: sensorflow-db
restart: always
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
# 2. SEU SERVIÇO DE API
api:
build: .
container_name: temp-data-api
restart: always
env_file:
- .env
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
# 3. SERVIÇO DO GRAFANA
grafana:
image: grafana/grafana-oss:11.0.0
container_name: grafana
restart: always
user: "0"
ports:
- "3000:3000"
env_file:
- .env
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin123
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource
- GF_USERS_ALLOW_SIGN_UP=false
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin123
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource
- GF_USERS_ALLOW_SIGN_UP=false
- GF_USERS_ALLOW_ORG_CREATE=false
- GF_USERS_AUTO_ASSIGN_ORG=true
- GF_USERS_AUTO_ASSIGN_ORG_ROLE=Admin
- GF_PATHS_DATA=/var/lib/grafana
- GF_PATHS_LOGS=/var/log/grafana
- GF_PATHS_PLUGINS=/var/lib/grafana/plugins
- GF_DATABASE_TYPE=sqlite3
- GF_DATABASE_PATH=/var/lib/grafana/grafana.db
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/d/sensores-iot
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
depends_on:
db:
condition: service_healthy
volumes:
postgres_data:
grafana_data: