try to deploy en nas
Build & Deploy / build (push) Successful in 31s
Build & Deploy / docker (push) Failing after 11s

This commit is contained in:
Kevin
2026-06-28 13:26:22 +02:00
parent d3108359d0
commit c822872184
2 changed files with 19 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
APP_KEY=Z_CbQqpIxo4bGJ0WpqZkB3HoaLXvHf0J
APP_URL=http://192.168.1.39:3333
DB_PASSWORD=pcbuilder_secure_pass
DB_DATABASE=pc_builder
DB_USER=pcbuilder
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
MYSQL_CONTAINER=$(docker ps -q --filter ancestor=mysql:8 | head -1)
if [ -z "$MYSQL_CONTAINER" ]; then
echo "❌ MySQL container not found"
exit 1
fi
echo "MySQL container: $MYSQL_CONTAINER"
docker exec "$MYSQL_CONTAINER" mysql -u root -pnpm_root_password -e "
CREATE DATABASE IF NOT EXISTS pc_builder;
CREATE USER IF NOT EXISTS 'pcbuilder'@'%' IDENTIFIED BY 'pcbuilder_secure_pass';
GRANT ALL PRIVILEGES ON pc_builder.* TO 'pcbuilder'@'%';
FLUSH PRIVILEGES;
"
echo "✅ Database pc_builder created"