Merge pull request #3 from Citrullin/docker-compose-check

Docker-compose and docker compose
This commit is contained in:
Minh Nguyen 2025-04-20 11:31:05 +07:00 committed by GitHub
commit 85254a6639
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
run.sh
View File

@ -46,6 +46,11 @@ find $DESTINATION -type d -exec chmod 755 {} \;
chmod +x $DESTINATION/entrypoint.sh
# Run Odoo
if ! is_present="$(type -p "docker-compose")" || [[ -z $is_present ]]; then
docker compose -f $DESTINATION/docker-compose.yml up -d
else
docker-compose -f $DESTINATION/docker-compose.yml up -d
fi
echo "Odoo started at http://localhost:$PORT | Master Password: minhng.info | Live chat port: $CHAT"