-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (67 loc) · 1.68 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (67 loc) · 1.68 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
services:
influxdb:
image: influxdb:2.7
container_name: brownyx-influxdb
ports:
- "8086:8086"
volumes:
- influxdb-data:/var/lib/influxdb2
- influxdb-config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=adminpassword
- DOCKER_INFLUXDB_INIT_ORG=brownyx
- DOCKER_INFLUXDB_INIT_BUCKET=browser-metrics
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=brownyx-super-secret-token
networks:
- brownyx-network
grafana:
image: grafana/grafana:latest
container_name: brownyx-grafana
ports:
- "3002:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/var/lib/grafana/dashboards
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_INSTALL_PLUGINS=
depends_on:
- influxdb
networks:
- brownyx-network
api:
build:
context: .
dockerfile: Dockerfile
container_name: brownyx-api
ports:
- "3000:3000"
- "3001:3001"
volumes:
- ./src:/app/src
- ./logs:/app/logs
environment:
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_TOKEN=brownyx-super-secret-token
- INFLUXDB_ORG=brownyx
- INFLUXDB_BUCKET=browser-metrics
- API_PORT=3000
- WS_PORT=3001
depends_on:
- influxdb
networks:
- brownyx-network
privileged: true
devices:
- /dev/dri:/dev/dri # GPU access
volumes:
influxdb-data:
influxdb-config:
grafana-data:
networks:
brownyx-network:
driver: bridge