services: metacrypt: build: context: ../.. dockerfile: Dockerfile container_name: metacrypt restart: unless-stopped ports: - "8443:8443" volumes: - metacrypt-data:/data # To populate /data before first run, use an init container or # bind-mount a host directory instead of a named volume: # volumes: # - ./data:/data healthcheck: test: ["CMD", "metacrypt", "status", "--addr", "https://localhost:8443", "--ca-cert", "/data/certs/ca.crt"] interval: 30s timeout: 5s retries: 3 start_period: 10s volumes: metacrypt-data: