/
docker-compose.debug.yml
49 lines (45 loc) · 1.26 KB
/
docker-compose.debug.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
version: '3.4'
services:
octoprint:
image: octoprint/octoprint
restart: unless-stopped
ports:
- 8080:80
devices:
- /dev/ttyAMA0:/dev/ttyAMA0
- /dev/ttyUSB0:/dev/ttyUSB69
volumes:
- octoprint:/octoprint
networks:
- secureprinting
secureprinting:
image: secureprinting
build:
context: .
dockerfile: ./Dockerfile
command:
[
"sh",
"-c",
"pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000 --nothreading --noreload"
]
restart: unless-stopped
ports:
- 80:8000
- 5678:5678
volumes:
- configs:/app/data
- uploads:/app/uploads
environment:
- OCTOPRINT_URL=http://octoprint:80
- OCTOPRINT_APIKEY=${OCTOPRINT_APIKEY}
- SECRET_KEY=${SECRET_KEY}
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
networks:
- secureprinting
volumes:
octoprint: {}
configs: {}
uploads: {}
networks:
secureprinting: {}