version: '3.0'

services:
  lib: &default
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - .:/usr/src/app
      - registry:/root/.cargo/registry
    env_file: .secrets

volumes:
  registry:
    driver: local

version: '3.0'

services:
  lib: &default
    build:
      context: .
      dockerfile: Dockerfile
    command: cargo test -- --nocapture
    volumes:
      - .:/usr/src/app
      - registry:/root/.cargo/registry
    env_file: .secrets

volumes:
  registry:
    driver: local

Set `cargo test` to be the compose command
Set `cargo test` to be the compose command

Running tests by default in development, setting the `--nocapture` flag
so that inline messages to `stdout` are shown in the console
