version: "3.8" services: vaultwarden: image: vaultwarden/server:latest restart: unless-stopped environment: - DOMAIN=https://vault.hobbs.farm - SIGNUPS_ALLOWED=false volumes: - /data/configs/vaultwarden:/data ports: - "26226:80" healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:80/alive || exit 1"] interval: 30s timeout: 10s retries: 3 start_period: 30s logging: driver: "json-file" options: max-size: "50m" max-file: "3" deploy: mode: replicated replicas: 1 placement: constraints: - node.hostname == hf-pdocker-01 resources: limits: memory: 256M