-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.14 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
version: '3.8'
services:
nginx:
image: nginx:alpine
container_name: ns-nginx
ports:
- "9191:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./web/dist:/usr/share/nginx/html:ro
depends_on:
- backend
restart: always
backend:
build: .
container_name: ns-center
environment:
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=networkstatus
- INFLUXDB_BUCKET_RAW=raw
- INFLUXDB_BUCKET_1M=agg_1m
- INFLUXDB_BUCKET_1H=agg_1h
- SECRET_KEY=${SECRET_KEY}
volumes:
- ./data:/app/data
depends_on:
- influxdb
restart: always
influxdb:
image: influxdb:2.7
container_name: ns-influxdb
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=networkstatus
- DOCKER_INFLUXDB_INIT_BUCKET=raw
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN}
volumes:
- influxdb_data:/var/lib/influxdb2
restart: always
volumes:
influxdb_data: