Files
gromacs_docker/docker-compose_1_module.yml
2025-01-18 21:39:38 +08:00

35 lines
742 B
YAML

version: '3.8'
services:
gromacs:
build:
context: .
dockerfile: Dockerfile.1.module
# env_file:
# - .env
container_name: cuda_1
pull_policy: if_not_present
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
image: hotwa/gromacs:module
# privileged: true
# cap_add:
# - ALL
# - CAP_SYS_PTRACE
# shm_size: '16gb'
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- TMPDIR=/var/tmp
command: ["tail", "-f", "/dev/null"]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]