-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.82 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:
influxdb:
image: influxdb:2
container_name: sentinel-influxdb
ports:
- "8086:8086"
volumes:
- influxdb-data:/var/lib/influxdb2
- influxdb-config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=sentinel
- DOCKER_INFLUXDB_INIT_PASSWORD=sentinelpassword
- DOCKER_INFLUXDB_INIT_ORG=sentinel
- DOCKER_INFLUXDB_INIT_BUCKET=metrics
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=sentinel-super-secret-token-change-me-in-production
restart: unless-stopped
healthcheck:
test: ["CMD", "influx", "ping"]
interval: 30s
timeout: 10s
retries: 3
dashboard-backend:
build:
context: .
dockerfile: Dockerfile.dashboard
container_name: sentinel-dashboard
network_mode: "host"
environment:
- INFLUX_URL=http://localhost:8086
- INFLUX_TOKEN=sentinel-super-secret-token-change-me-in-production
- INFLUX_ORG=sentinel
- INFLUX_BUCKET=metrics
command: [
"-influx-url=http://localhost:8086",
"-influx-token=sentinel-super-secret-token-change-me-in-production",
"-influx-org=sentinel",
"-influx-bucket=metrics"
]
depends_on:
influxdb:
condition: service_healthy
volumes:
- agents-data:/app
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: unless-stopped
dashboard-frontend:
build:
context: ./dashboard/frontend
dockerfile: Dockerfile
container_name: sentinel-frontend
ports:
- "3000:80"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- dashboard-backend
restart: unless-stopped
networks:
sentinel-network:
driver: bridge
volumes:
influxdb-data:
influxdb-config:
agents-data: