Combining Compose files
Now that we have split the task-manager
application, we should be able to run and have the same functionality we had in Chapter 6, Monitoring Services with Prometheus. We should be able to store the tasks by executing requests to the Task Manager combined with a location.
Compose offers the option to combine multiple files.
Let’s run the application and all the services needed together:
docker compose -f base-compose.yaml -f monitoring/docker-compose.yaml -f event-service/docker-compose.yaml -f location-service/docker-compose.yaml -f task-manager/docker-compose.yaml up Network chapter7_location-network Created 0.0s Network chapter7_redis-network Created 0.0s Network chapter7_monitoring-network Created 0.0s Container chapter7-redis-1 ...