Thanks @Freebios !

Thanks @Freebios ! Testing in Ubuntu env: Installation went well. As this is a remote server I have to replace localhost by server name. So I stopped the docker and I got errors
iero@sgl:~/twenty$ docker-compose down
WARNING: The STORAGE_S3_REGION variable is not set. Defaulting to a blank string.
WARNING: The STORAGE_S3_NAME variable is not set. Defaulting to a blank string.
WARNING: The STORAGE_S3_ENDPOINT variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.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/
services.server.environment.ENABLE_DB_MIGRATIONS contains true, which is an invalid type, it should be a string, number, or a null
iero@sgl:~/twenty$ docker-compose down
WARNING: The STORAGE_S3_REGION variable is not set. Defaulting to a blank string.
WARNING: The STORAGE_S3_NAME variable is not set. Defaulting to a blank string.
WARNING: The STORAGE_S3_ENDPOINT variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.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/
services.server.environment.ENABLE_DB_MIGRATIONS contains true, which is an invalid type, it should be a string, number, or a null
So I added
version: "3.9"
version: "3.9"
in the docker compose, removed name and ENABLE_DB_MIGRATIONS lines. I added FRONT_BASE_URL line in .env And it works
4 Replies
Freebios
Freebios6mo ago
Thanks for the feedback ! It seems that docker compose is a bit of a mess these days, version is actually deprecated but a lot of environments are still on older docker compose versions, we'll bring back the version for greater support. Could you share with us
docker version
docker version
and
docker compose version
docker compose version
Thanks
greg [iero]
greg [iero]6mo ago
Sure
iero@sgl:~/twenty$ docker version
Client: Docker Engine - Community
Version: 26.0.0
API version: 1.45
Go version: go1.21.8
Git commit: 2ae903e
Built: Wed Mar 20 15:17:48 2024
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 26.0.0
API version: 1.45 (minimum version 1.24)
Go version: go1.21.8
Git commit: 8b79278
Built: Wed Mar 20 15:17:48 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0

iero@sgl:~/twenty$ docker compose version
Docker Compose version v2.25.0
iero@sgl:~/twenty$ docker version
Client: Docker Engine - Community
Version: 26.0.0
API version: 1.45
Go version: go1.21.8
Git commit: 2ae903e
Built: Wed Mar 20 15:17:48 2024
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 26.0.0
API version: 1.45 (minimum version 1.24)
Go version: go1.21.8
Git commit: 8b79278
Built: Wed Mar 20 15:17:48 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0

iero@sgl:~/twenty$ docker compose version
Docker Compose version v2.25.0
Freebios
Freebios6mo ago
that's odd, your environment is actually more up to date than mine 😅 thanks
greg [iero]
greg [iero]6mo ago
I come from the future 😄 I installed Ubuntu 22.04.4 LTS on this server
Want results from more Discord servers?
Add your server