-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
38 lines (38 loc) · 1.04 KB
/
docker-compose.yml
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
services:
open-dynamic-export:
image: longzhengau/open-dynamic-export:latest
build:
context: .
dockerfile: ./Dockerfile
privileged: true # access to USB devices
env_file:
- .env
ports:
- ${SERVER_PORT}:3000
volumes:
- ./config/:/app/config/
- ./logs/:/app/logs/
restart: 'unless-stopped'
depends_on:
- influxdb
influxdb:
image: influxdb:2
env_file:
- .env
ports:
- ${INFLUXDB_PORT}:${INFLUXDB_PORT}
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
INFLUXD_HTTP_BIND_ADDRESS: :${INFLUXDB_PORT}
DOCKER_INFLUXDB_INIT_USERNAME: ${INFLUXDB_USERNAME}
DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_PASSWORD}
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN}
DOCKER_INFLUXDB_INIT_ORG: ${INFLUXDB_ORG}
DOCKER_INFLUXDB_INIT_BUCKET: ${INFLUXDB_BUCKET}
volumes:
- influxdb2-data:/var/lib/influxdb2
- influxdb2-config:/etc/influxdb2
restart: 'unless-stopped'
volumes:
influxdb2-data:
influxdb2-config: