Docker Compose file · Services

Override the command

Change the command or entrypoint that the image defines.

command: ["npm", "run", "dev"]
entrypoint: ["/entrypoint.sh"]

Official Docker Compose file documentation

More services commands

All services commands · Docker Compose file cheatsheet

Was this page helpful?