I have an existing project with a docker-compose.yml file that runs a zookeeper and kafka image. How do I specify that the docker-compose.yml file needs to be loaded in my devcontainer.json?
Would it be possible to not modify the docker-compose file since others are using the same file, but not using VS Code. The docker-compose.yml looks like this.
---
version: '1'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
xxxxx
expose:
xxxxx
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
environment:
xxxxx
expose:
xxxxx
Thanks!
My .devcontain.json looks like this:
` { "name": "setup_sys", "dockerComposeFile": "docker-compose.yml", "postCreateCommand": "sleep infinity", "shutdownAction": "stopCompose", } `
The docker-compose.yml is in the same folder. When I try loading it in a container, I get the following ``` Service 'undefined' configured in devcontainer.json not found in Docker Compose configuration. ``` – Pepper Jul 15 '20 at 23:49