23 lines
696 B
YAML
23 lines
696 B
YAML
services:
|
|
stepanalyser:
|
|
build: .
|
|
container_name: stepanalyser
|
|
ports:
|
|
- "5055:5055"
|
|
volumes:
|
|
- ./_jobs:/app/_jobs
|
|
environment:
|
|
- TZ=Europe/Berlin
|
|
- FREECADCMD=/opt/conda/envs/fc/bin/freecadcmd
|
|
- FREECAD_TIMEOUT_SEC=1200
|
|
- FREECAD_LOCK_FILE=/app/_jobs/.freecad.lock
|
|
command: >
|
|
bash -lc '
|
|
mkdir -p /config/.local/share/FreeCAD/Mod &&
|
|
if [ ! -e /config/.local/share/FreeCAD/Mod/SheetMetal ]; then
|
|
ln -s /opt/freecad_mods/SheetMetal /config/.local/share/FreeCAD/Mod/SheetMetal;
|
|
fi &&
|
|
micromamba run -n fc gunicorn -w 1 --threads 4 -b 0.0.0.0:5055 app:app
|
|
'
|
|
restart: unless-stopped
|