[GH-ISSUE #120] Compose Error #1048

Closed
opened 2026-05-03 01:55:59 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Naster17 on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/reconurge/flowsint/issues/120

Debian 12
Using latest build v1.2.6

docker-compose version 1.29.2, build unknown
docker-py version: 5.0.3
CPython version: 3.11.2
OpenSSL version: OpenSSL 3.0.18 30 Sep 2025
make prod   
Starting PROD environment...
make check-env
make[1]: Entering directory '/home/nik/Documents/flowsint'
Checking .env files...
make[1]: Leaving directory '/home/nik/Documents/flowsint'
make build-prod
make[1]: Entering directory '/home/nik/Documents/flowsint'
Building PROD images...
docker-compose -f docker-compose.prod.yml build
ERROR: The Compose file './docker-compose.prod.yml' is invalid because:
'name' does not match any of the regexes: '^x-'

You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
make[1]: *** [Makefile:87: build-prod] Error 1
make[1]: Leaving directory '/home/nik/Documents/flowsint'
make: *** [Makefile:78: prod] Error 2
Originally created by @Naster17 on GitHub (Feb 7, 2026). Original GitHub issue: https://github.com/reconurge/flowsint/issues/120 Debian 12 Using latest build v1.2.6 ``` docker-compose version 1.29.2, build unknown docker-py version: 5.0.3 CPython version: 3.11.2 OpenSSL version: OpenSSL 3.0.18 30 Sep 2025 ``` ``` make prod Starting PROD environment... make check-env make[1]: Entering directory '/home/nik/Documents/flowsint' Checking .env files... make[1]: Leaving directory '/home/nik/Documents/flowsint' make build-prod make[1]: Entering directory '/home/nik/Documents/flowsint' Building PROD images... docker-compose -f docker-compose.prod.yml build ERROR: The Compose file './docker-compose.prod.yml' is invalid because: 'name' does not match any of the regexes: '^x-' You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/ make[1]: *** [Makefile:87: build-prod] Error 1 make[1]: Leaving directory '/home/nik/Documents/flowsint' make: *** [Makefile:78: prod] Error 2 ```
Author
Owner

@Naster17 commented on GitHub (Feb 7, 2026):

Fix: updating to new version 2.x.x
For debian: https://docs.docker.com/engine/install/debian/

<!-- gh-comment-id:3865205185 --> @Naster17 commented on GitHub (Feb 7, 2026): Fix: updating to new version 2.x.x For debian: https://docs.docker.com/engine/install/debian/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/flowsint#1048