version: "3.7" services: mongo: image: mongo:4 networks: - acheronet restart: always caronte: build: context: . dockerfile: Dockerfile image: caronte ports: - "6666:6666" depends_on: - mongo networks: - acheronet command: "./scripts/travis_tests.sh" environment: MONGO_HOST: mongo MONGO_PORT: 27017 networks: acheronet: