version: '2.4' services: app: build: # Make sure the build context is one directory up context: '..' dockerfile: './docker/Dockerfile.dev' image: 'chewingbever/fej:dev' restart: 'no' container_name: 'fej_app' volumes: - 'build-cache:/app/target' - 'registry-cache:/app/.cargo/registry' ports: - '8000:8000' command: "${CMD}" db: container_name: 'fej_db' restart: 'no' # the devop environment exposes the database so we can use the Diesel cli ports: - '5432:5432' volumes: build-cache: registry-cache: