-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 1.08 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
version: "3"
services:
# frontend:
# build: ./frontend
# depends_on:
# - data-api
# environment:
# APP_ENV: local
# ports:
# - "8080:80"
data-api:
build: ./data-api
depends_on:
- influxdb
environment:
APP_DB_CONFIG: |
url: http://influxdb:8086
token: e05e8315f285f493c763ccc0de041649
org: sweight
APP_DB_BUCKET: data
ports:
- "8081:3000"
handler:
build: ./handler
depends_on:
- influxdb
environment:
APP_DATA_API_URL: http://data-api:3000
env_file:
- handler/secret.env
# ports:
# - "8081:3000"
influxdb:
image: influxdb:2.4
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: influxdb
DOCKER_INFLUXDB_INIT_PASSWORD: password
DOCKER_INFLUXDB_INIT_ORG: sweight
DOCKER_INFLUXDB_INIT_BUCKET: data
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: e05e8315f285f493c763ccc0de041649
ports:
- "8086:8086"
volumes:
- influxdb-data:/var/lib/influxdb2
volumes:
influxdb-data: