Compare commits

...

4 Commits

Author SHA1 Message Date
philipp lang c047f8da63 Update README
continuous-integration/drone/push Build is passing Details
2025-04-03 23:07:30 +02:00
philipp lang 9097f0bbd9 Remove restart always 2025-04-03 23:07:16 +02:00
philipp lang 3f44fbe5b0 Add seeding for database 2025-04-03 23:07:03 +02:00
philipp lang 8e1f7869e2 Fix UserSeeder 2025-04-03 23:04:26 +02:00
4 changed files with 9 additions and 14 deletions

View File

@ -28,7 +28,7 @@ fi
if [ $1 == "app" ]; then if [ $1 == "app" ]; then
# --------------------------- ensure appkey is set ---------------------------- # --------------------------- ensure appkey is set ----------------------------
wait_for_db wait_for_db
php -r '$connection = new PDO("mysql:host='$DB_HOST';dbname='$DB_DATABASE'", "'$DB_USERNAME'", "'$DB_PASSWORD'"); $connection->query("DESCRIBE migrations");' > /dev/null || php artisan migrate --seed --force php -r '$connection = new PDO("mysql:host='$DB_HOST';dbname='$DB_DATABASE'", "'$DB_USERNAME'", "'$DB_PASSWORD'"); $connection->query("DESCRIBE migrations");' > /dev/null || ( php artisan migrate --seed --force && php artisan db:seed )
su www-data -c 'php artisan migrate --force' su www-data -c 'php artisan migrate --force'
php artisan scout:sync-index-settings php artisan scout:sync-index-settings
php-fpm -F -R -O php-fpm -F -R -O

View File

@ -32,16 +32,16 @@ Außerdem ist AdReMa auch problemlos auf Handys und Tablets bedienbar ("mobiles
## Installation des Produktivsystems ## Installation des Produktivsystems
1. Herunterladen der Beispiel Docker-Compose 1. Verschieben der Docker-Compose
```cmd ```cmd
curl https://git.zoomyboy.de/silva/adrema/raw/branch/master/docker-compose.prod.yml -o docker-compose.yml mv docker-compose.prod.yml docker-compose.yml
``` ```
2. Herunterladen der Beispiel Environmentvariablen-Datei 2. Anwenden der Beispiel Environmentvariablen-Datei
```cmd ```cmd
curl https://git.zoomyboy.de/silva/adrema/raw/branch/master/.app.env.example -o .app.env mv .app.env.example .app.env
``` ```
3. In der `.app.env` notwendige Einstellungen vornehmen: 3. In der `.app.env` notwendige Einstellungen vornehmen:
@ -50,7 +50,8 @@ Außerdem ist AdReMa auch problemlos auf Handys und Tablets bedienbar ("mobiles
- Mail-Server Einstellungen `MAIL_PORT`, `MAIL_HOST`, `MAIL_USERNAME`, `MAIL_PASSWORD` und `MAIL_ENCRYPTION` anpassen - Mail-Server Einstellungen `MAIL_PORT`, `MAIL_HOST`, `MAIL_USERNAME`, `MAIL_PASSWORD` und `MAIL_ENCRYPTION` anpassen
- `MAIL_FROM_NAME`: Der Name, der als Absender von E-Mails gesetzt wird (z.B. `Stamm Bipi Service`) - `MAIL_FROM_NAME`: Der Name, der als Absender von E-Mails gesetzt wird (z.B. `Stamm Bipi Service`)
- `MAIL_FROM_ADDRESS`: Die dazu gehörige E-Mail-Adresse, die natürlich für antworten erreichbar sein sollte (z.B. `vorstand@stamm-bipi.de`) - `MAIL_FROM_ADDRESS`: Die dazu gehörige E-Mail-Adresse, die natürlich für antworten erreichbar sein sollte (z.B. `vorstand@stamm-bipi.de`)
- `DB_PASSWORD` und `MYSQL_PASSWORD`: Mit dem selben sicheren Passwort für die Datenbank versehen - `DB_PASSWORD` und `MYSQL_PASSWORD`: Mit dem selben neu erstellten, sicheren Passwort für die Datenbank versehen
- `MEILI_MASTER_KEY` Mit einem neu erstellten, sicheren Passwort versehen
- `USER_EMAIL` und `USER_PASSWORD`: Einstellen des standard Adrema Logins - `USER_EMAIL` und `USER_PASSWORD`: Einstellen des standard Adrema Logins
4. Container zur Gennerierung des App-Key starten 4. Container zur Gennerierung des App-Key starten

View File

@ -19,7 +19,8 @@ class UserSeeder extends Seeder
'email' => config('init.email'), 'email' => config('init.email'),
'email_verified_at' => now(), 'email_verified_at' => now(),
'password' => Hash::make(config('init.password')), 'password' => Hash::make(config('init.password')),
'name' => 'Adrema Benutzer', 'firstname' => 'Adrema',
'lastname' => 'Benutzer',
]); ]);
} }
} }

View File

@ -2,7 +2,6 @@ version: '3'
services: services:
webservice: webservice:
image: zoomyboy/adrema-webservice:latest image: zoomyboy/adrema-webservice:latest
restart: always
depends_on: depends_on:
- php - php
ports: ports:
@ -12,7 +11,6 @@ services:
php: php:
image: zoomyboy/adrema-app:latest image: zoomyboy/adrema-app:latest
restart: always
depends_on: depends_on:
- db - db
- redis - redis
@ -38,7 +36,6 @@ services:
horizon: horizon:
image: zoomyboy/adrema-app:latest image: zoomyboy/adrema-app:latest
restart: always
depends_on: depends_on:
- php - php
command: /bin/entrypoint horizon command: /bin/entrypoint horizon
@ -62,7 +59,6 @@ services:
schedule: schedule:
image: zoomyboy/adrema-app:latest image: zoomyboy/adrema-app:latest
restart: always
depends_on: depends_on:
- php - php
command: /bin/entrypoint schedule command: /bin/entrypoint schedule
@ -86,7 +82,6 @@ services:
db: db:
image: mariadb:10.6.5 image: mariadb:10.6.5
restart: always
env_file: env_file:
- .app.env - .app.env
environment: environment:
@ -98,7 +93,6 @@ services:
socketi: socketi:
image: quay.io/soketi/soketi:89604f268623cf799573178a7ba56b7491416bde-16-debian image: quay.io/soketi/soketi:89604f268623cf799573178a7ba56b7491416bde-16-debian
restart: always
environment: environment:
SOKETI_DEFAULT_APP_ID: adremaid SOKETI_DEFAULT_APP_ID: adremaid
SOKETI_DEFAULT_APP_KEY: adremakey SOKETI_DEFAULT_APP_KEY: adremakey
@ -106,7 +100,6 @@ services:
redis: redis:
image: redis:alpine3.18 image: redis:alpine3.18
restart: always
volumes: volumes:
- ./data/redis:/data - ./data/redis:/data