Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (81 loc) · 2.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (81 loc) · 2.47 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
79
80
81
82
83
84
85
86
87
88
##
## -----------------------------------
## | 3 D P R I N T E R - D O C K E R |
## -----------------------------------
##
## Container based 3D Printer tools configuration
##
## -- DO NOT EDIT THIS FILE --
##
## Configuration items for this file are taken from the .env file
##
## Have docker-compose.yml and .env in the same directory to launch the stack
version: '3'
######################
# SERVICES TO LAUNCH #
######################
services:
# ----------------------------------------
# SPOOLMAN
# 3D Printer Filament Tracker
# ----------------------------------------
spoolman:
image: ghcr.io/donkie/spoolman:latest
container_name: spoolman
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-file: '${LOG_FILE_NUM}'
max-size: '${LOG_FILE_SIZE}'
ports:
- '${SPOOLMAN_PORT}:8000'
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
volumes:
- '${BASE_DOCKER_PATH}/spoolman:/home/app/.local/share/spoolman'
- '/etc/localtime:/etc/localtime:ro'
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
# ----------------------------------------
# BAMBU AMS FILAMENT STATUS
# Filament Info from AMS to Spoolman
# ----------------------------------------
bambulab-ams-spoolman-filamentstatus:
image: ghcr.io/rdiger-36/haspelsync:latest
container_name: amsfilament
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-file: '${LOG_FILE_NUM}'
max-size: '${LOG_FILE_SIZE}'
depends_on:
spoolman:
condition: service_started
restart: true
ports:
- '${BAMBUAMS_PORT}:4000'
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
- SPOOLMAN_ENDPOINT=${SPOOLMAN_ENDPOINT}
- UPDATE_INTERVAL=${UPDATE_INTERVAL}
- MODE=${BAMBUAMS_MODE}
volumes:
- '${BASE_DOCKER_PATH}/amsfilament/printers:/app/printers'
- '${BASE_DOCKER_PATH}/amsfilament/logs:/app/logs'
- '/etc/localtime:/etc/localtime:ro'
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:4000/ || wget -q --spider http://localhost:4000/ || python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:4000/')\" || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s