How to run docker-compose with custom file name [duplicate] April 1, 2024 by Tarik Use -f option to specify the file name. Example: docker-compose -f docker-compose.test.yml up