Podman_compose_BigData/bigdata.service
2025-10-16 21:15:12 +09:00

30 lines
694 B
Desktop File

# ~/usb_work/podman/bigdata-server/bigdata.container
[Unit]
Description=BigData Server Container
After=network-online.target
[Container]
ContainerName=bigdata_server
Image=localhost/bigdata-server_base-server:latest
Build=Containerfile
NetworkMode=host
User=0:0
Environment=NVIDIA_VISIBLE_DEVICES=all
Environment=TZ=Asia/Seoul
Environment=DB_HOST=localhost
Environment=DB_PORT=15433
Environment=DB_USER=spacs
Environment=DB_PASSWORD=scaps
Environment=DB_NAME=spacs
Volume=./ssdoctors:/home/ssdoctors:Z
Volume=./data/workspace:/workspace:Z
RunInit=yes
# ✅ GPU 사용을 위한 핵심 옵션
Device=/dev/nvidia0
Device=/dev/nvidiactl
Device=/dev/nvidia-uvm
[Install]
WantedBy=default.target