-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 858 Bytes
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
version: '3.8'
services:
flashforge-dashboard:
build:
context: .
dockerfile: Dockerfile
container_name: flashforge-dashboard
restart: unless-stopped
ports:
- "${SERVER_PORT:-3000}:3000"
environment:
- NODE_ENV=production
- PRINTER_IP=${PRINTER_IP:-192.168.1.100}
- PRINTER_PORT=${PRINTER_PORT:-8899}
- SERVER_PORT=3000
- PRINTER_DEBUG=${PRINTER_DEBUG:-false}
volumes:
# Persist configuration
- ./config:/app/config
# Persist uploads temporarily
- ./uploads:/app/uploads
networks:
- flashforge-network
# Required for the printer communication to work properly
# The container needs to be able to reach the printer on the network
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
flashforge-network:
driver: bridge