A service is a defined configuration for a container, while a stack is a collection of services working together as an application.