version: "3.7" services: mongo: image: mongo:4 networks: - acheronet restart: always caronte: build: context: . dockerfile: Dockerfile image: caronte ports: - "80:3333" depends_on: - mongo networks: - acheronet command: ./caronte -mongo-host mongo -mongo-port 27017 networks: acheronet: