-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.54 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
55
56
57
58
59
60
61
62
63
version: "2.1"
services:
octoprint:
build: ./octoprint/.
image: "forge/octoprint:latest"
container_name: octoprint
restart: unless-stopped
volumes:
- /dev:/dev
ports:
- "5000:5000"
influx:
image: quay.io/influxdb/influxdb:v2.0.4
command: influxd run --bolt-path /var/lib/influxdb2/influxd.bolt --engine-path /var/lib/influxdb2/engine --store bolt
container_name: influx
volumes:
- influx-data:/var/lib/influxdb2
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=db0
- INFLUXDB_ADMIN_USER="forge"
- INFLUXDB_ADMIN_PASSWORD="password"
companion:
build: ./companion/.
image: "forge/companion:latest"
container_name: companion
restart: unless-stopped
volumes:
- companion-data:/data
ports:
- "9000:80"
- "4840:4840"
depends_on:
- octoprint
- influx
environment:
- BUFFER_LOC=/data/dataset.hdf5
- ID=1
- FLASK_APP=main.py
- LOG=INFO
- OCTOPRINT_URL=http://octoprint:5000
- SMIP_URL=https://rpi.cesmii.net/graphql
- SMIP_AUTH=ShuYang
- SMIP_ACCT=yangs18
- SMIP_ROLE=rpi_ro_group
- SMIP_PSWD=Admin123456
- SMIP_TRMP_ACTUAL_TAG_ID=24410
- SMIP_TRMP_SETPOINT_TAG_ID=24413
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/health-check"]
interval: 30s
timeout: 5s
volumes:
influx-data:
driver: local
companion-data:
driver: local