version: "3.2" services: aerospikedb: image: aerospike/aerospike-server:latest deploy: replicas: 1 endpoint_mode: dnsrr labels: com.aerospike.cluster: "myproject" command: [ "--config-file","/run/secrets/aerospike.conf"] secrets: - source: conffile target: aerospike.conf mode: 0440 ports: - "3000:3000" secrets: conffile: file: ./aerospike.conf