-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (72 loc) · 1.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (72 loc) · 1.74 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
73
74
75
76
77
78
version: '3.8'
services:
grafana:
image: grafana/grafana
container_name: bda-grafana
env_file:
- .env
environment:
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=${INFLUXDB_ORG}
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET}
ports:
- "3000:3000"
volumes:
- bda-grafana-storage:/var/lib/grafana:z
- ./grafana/provisioning:/etc/grafana/provisioning:z
restart: always
depends_on:
- influxdb
proxy:
image: docker.io/nginx:alpine
container_name: bda-proxy
ports:
- "8080:80"
volumes:
- ./proxy.conf:/etc/nginx/conf.d/default.conf:z
depends_on:
- grafana
- app
restart: always
app:
build: .
container_name: bda-app
ports:
- "4000:4000"
restart: always
env_file:
- .env
depends_on:
- db
- influxdb
db:
image: postgres:16-alpine
container_name: bda-db
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
ports:
- "5432:5432"
volumes:
- bda-pgdata:/var/lib/postgresql/data
restart: always
influxdb:
image: docker.io/influxdb:2.7
container_name: bda-influxdb
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN}
volumes:
- bda-influxdb-storage:/var/lib/influxdb2
restart: always
volumes:
bda-grafana-storage: {}
bda-pgdata: {}
bda-influxdb-storage: {}