version: '3' services: db: image: mongo restart: on-failure ports: - '27017:27017' volumes: - ./data:/data/db