version: "3.8" services: rust: build: context: . dockerfile: ./Dockerfile command: cargo test -- --test-threads=1 volumes: - ./src:/usr/src/app/src - ./static:/usr/src/app/static couchdb: env_file: ./.env build: ./couchdb image: "$COUCHDB_IMAGE_NAME" container_name: "$COUCHDB_CONTAINER_NAME" volumes: - ./couchdb/data:/opt/couchdb/data # health check is cool but it keeps pinging... # + it take more time to startup # keep in mind if find a way to execute check only ofr specific command # healthcheck: # test: ["CMD", "curl", "-f", "$COUCHDB_PROTOCOL://localhost:$COUCHDB_PORT/_up"] # interval: 10s # timeout: 10s # retries: 3 # start_period: 5s # expose to external world # disable when not testing ports: - ${COUCHDB_PORT}:${COUCHDB_PORT}