Docker compose up -d does not launch app, give error: '/multi-container-app/compose.yaml: services.todo-app Additional property develop is not allowed'
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker-compose
- Domain
- devops
Research direction
Start with compose.yaml and run the reported docker compose up -d command to reproduce the validation error. Compare the shown develop.watch configuration with the Docker Compose reference and verify that the application starts successfully without the schema error.
Written by the indexing model from the issue text.
Description
I pulled directly from this repo as the docker desktop walkthrough asks and ran provided command given and received the following error:
➜ multi-container-app git:(main) ✗ docker compose up -d
validating /Users/scalvert/source/multi-container-app/compose.yaml: services.todo-app Additional property develop is not allowed
compose.yaml file:
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Docker compose reference guide at
# https://docs.docker.com/compose/compose-file/
# Here the instructions define your application as two services called "todo-app" and “todo-database”
# The service “todo-app” is built from the Dockerfile in the /app directory,
# and the service “todo-database” uses the official MongoDB image
# from Docker Hub - https://hub.docker.com/_/mongo.
# You can add other services your application may depend on here.
services:
todo-app:
build:
context: ./app
depends_on:
- todo-database
environment:
NODE_ENV: production
ports:
- 3000:3000
- 35729:35729
develop:
watch:
- path: ./app/package.json
action: rebuild
- path: ./app
target: /usr/src/app
action: sync
todo-database:
image: mongo:6
#volumes:
# - database:/data/db
ports:
- 27017:27017
#volumes:
#database:
- Dominant language
- EJS
- Stars
- 234
- Forks
- 658
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/multi-container-app
-
add text on a page Open
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
docker/multi-container-app#41 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
All issues in docker/multi-container-app
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#2215 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·