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