Compare commits
	
		
			12 Commits
		
	
	
		
			2fd6598ef3
			...
			37c9021e76
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								 | 
						37c9021e76 | |
| 
							
							
								 | 
						2e0b42bfbd | |
| 
							
							
								 | 
						3c7cd1173a | |
| 
							
							
								 | 
						0c14ebb229 | |
| 
							
							
								 | 
						0679a09d26 | |
| 
							
							
								 | 
						2dd0c3d2a0 | |
| 
							
							
								 | 
						21964e9665 | |
| 
							
							
								 | 
						5afe8613e1 | |
| 
							
							
								 | 
						c047f8da63 | |
| 
							
							
								 | 
						9097f0bbd9 | |
| 
							
							
								 | 
						3f44fbe5b0 | |
| 
							
							
								 | 
						8e1f7869e2 | 
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
FROM php:8.3.11-fpm as php
 | 
			
		||||
FROM php:8.3.11-fpm AS php
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
RUN ls /app
 | 
			
		||||
RUN apt-get update
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,17 @@
 | 
			
		|||
FROM composer:2.7.9 as composer
 | 
			
		||||
FROM composer:2.7.9 AS composer
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
COPY . /app
 | 
			
		||||
RUN composer install --ignore-platform-reqs --no-dev
 | 
			
		||||
RUN php artisan telescope:publish
 | 
			
		||||
RUN php artisan horizon:publish
 | 
			
		||||
 | 
			
		||||
FROM node:20.15.0-slim as node
 | 
			
		||||
FROM node:20.15.0-slim AS node
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
COPY . /app
 | 
			
		||||
RUN npm install && npm run prod && npm run img && rm -R node_modules
 | 
			
		||||
RUN cd packages/adrema-form && npm ci && npm run build && rm -R node_modules && cd ../../
 | 
			
		||||
RUN npm ci && npm run prod && npm run img && rm -R node_modules
 | 
			
		||||
 | 
			
		||||
FROM nginx:1.21.6-alpine as nginx
 | 
			
		||||
FROM nginx:1.21.6-alpine AS nginx
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
COPY --from=node /app /app
 | 
			
		||||
COPY --from=composer /app/public/vendor /app/public/vendor
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,14 +1,15 @@
 | 
			
		|||
FROM composer:2.7.9 as composer
 | 
			
		||||
FROM composer:2.7.9 AS composer
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
COPY . /app
 | 
			
		||||
RUN composer install --ignore-platform-reqs --no-dev
 | 
			
		||||
 | 
			
		||||
FROM node:20.15.0-slim as node
 | 
			
		||||
FROM node:20.15.0-slim AS node
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
COPY . /app
 | 
			
		||||
RUN npm install && npm run prod && npm run img && rm -R node_modules
 | 
			
		||||
RUN cd packages/adrema-form && npm ci && npm run build && rm -R node_modules && cd ../../
 | 
			
		||||
RUN npm ci && npm run prod && npm run img && rm -R node_modules
 | 
			
		||||
 | 
			
		||||
FROM zoomyboy/adrema-base:latest as php
 | 
			
		||||
FROM zoomyboy/adrema-base:latest AS php
 | 
			
		||||
COPY --chown=www-data:www-data . /app
 | 
			
		||||
COPY --chown=www-data:www-data --from=node /app/public /app/public
 | 
			
		||||
COPY --chown=www-data:www-data --from=composer /app/vendor /app/vendor
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										25
									
								
								README.md
								
								
								
								
							
							
						
						
									
										25
									
								
								README.md
								
								
								
								
							| 
						 | 
				
			
			@ -32,16 +32,16 @@ Außerdem ist AdReMa auch problemlos auf Handys und Tablets bedienbar ("mobiles
 | 
			
		|||
 | 
			
		||||
## Installation des Produktivsystems
 | 
			
		||||
 | 
			
		||||
1. Herunterladen der Beispiel Docker-Compose
 | 
			
		||||
1. Verschieben der Docker-Compose
 | 
			
		||||
 | 
			
		||||
    ```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
 | 
			
		||||
    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:
 | 
			
		||||
| 
						 | 
				
			
			@ -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_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`)
 | 
			
		||||
    - `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
 | 
			
		||||
 | 
			
		||||
4. Container zur Gennerierung des App-Key starten
 | 
			
		||||
| 
						 | 
				
			
			@ -99,28 +100,22 @@ Bei dem Setup wird im Daten-Verzeichniss ein Ordner `./data/setup` angelegt. Hie
 | 
			
		|||
    git clone https://git.zoomyboy.de/silva/adrema.git
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
2. Kopieren der Beispiel Docker-Compose für das Entwickeln und nach Wünschen anpassen
 | 
			
		||||
 | 
			
		||||
    ```cmd
 | 
			
		||||
    cp docker-compose.dev.yml docker-compose.yml
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
3. Kopieren der Beispiel Environmentvariablen-Datei
 | 
			
		||||
2. Kopieren der Beispiel Environmentvariablen-Datei
 | 
			
		||||
 | 
			
		||||
    ```cmd
 | 
			
		||||
    cp .app.env.example .app.env
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
4. Submodule aktuallisieren
 | 
			
		||||
3. Submodule aktuallisieren
 | 
			
		||||
 | 
			
		||||
    ```cmd
 | 
			
		||||
    git submodule update --init
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
5. Container erstellen
 | 
			
		||||
4. Container erstellen
 | 
			
		||||
 | 
			
		||||
    ```cmd
 | 
			
		||||
    docker compose build
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
6. Mit Schritt 3 und den folgenden der [Installation des Produktivsystems](#installation-des-produktivsystems) fortfahren
 | 
			
		||||
5. Mit Schritt 3 und den folgenden der [Installation des Produktivsystems](#installation-des-produktivsystems) fortfahren
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,7 +19,8 @@ class UserSeeder extends Seeder
 | 
			
		|||
            'email' => config('init.email'),
 | 
			
		||||
            'email_verified_at' => now(),
 | 
			
		||||
            'password' => Hash::make(config('init.password')),
 | 
			
		||||
            'name' => 'Adrema Benutzer',
 | 
			
		||||
            'firstname' => 'Adrema',
 | 
			
		||||
            'lastname' => 'Benutzer',
 | 
			
		||||
        ]);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,6 @@ version: '3'
 | 
			
		|||
services:
 | 
			
		||||
    webservice:
 | 
			
		||||
        image: zoomyboy/adrema-webservice:latest
 | 
			
		||||
        restart: always
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - php
 | 
			
		||||
        ports:
 | 
			
		||||
| 
						 | 
				
			
			@ -12,7 +11,6 @@ services:
 | 
			
		|||
 | 
			
		||||
    php:
 | 
			
		||||
        image: zoomyboy/adrema-app:latest
 | 
			
		||||
        restart: always
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - db
 | 
			
		||||
            - redis
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +36,6 @@ services:
 | 
			
		|||
 | 
			
		||||
    horizon:
 | 
			
		||||
        image: zoomyboy/adrema-app:latest
 | 
			
		||||
        restart: always
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - php
 | 
			
		||||
        command: /bin/entrypoint horizon
 | 
			
		||||
| 
						 | 
				
			
			@ -62,7 +59,6 @@ services:
 | 
			
		|||
 | 
			
		||||
    schedule:
 | 
			
		||||
        image: zoomyboy/adrema-app:latest
 | 
			
		||||
        restart: always
 | 
			
		||||
        depends_on:
 | 
			
		||||
            - php
 | 
			
		||||
        command: /bin/entrypoint schedule
 | 
			
		||||
| 
						 | 
				
			
			@ -86,7 +82,6 @@ services:
 | 
			
		|||
 | 
			
		||||
    db:
 | 
			
		||||
        image: mariadb:10.6.5
 | 
			
		||||
        restart: always
 | 
			
		||||
        env_file:
 | 
			
		||||
            - .app.env
 | 
			
		||||
        environment:
 | 
			
		||||
| 
						 | 
				
			
			@ -98,7 +93,6 @@ services:
 | 
			
		|||
 | 
			
		||||
    socketi:
 | 
			
		||||
        image: quay.io/soketi/soketi:89604f268623cf799573178a7ba56b7491416bde-16-debian
 | 
			
		||||
        restart: always
 | 
			
		||||
        environment:
 | 
			
		||||
            SOKETI_DEFAULT_APP_ID: adremaid
 | 
			
		||||
            SOKETI_DEFAULT_APP_KEY: adremakey
 | 
			
		||||
| 
						 | 
				
			
			@ -106,7 +100,6 @@ services:
 | 
			
		|||
 | 
			
		||||
    redis:
 | 
			
		||||
        image: redis:alpine3.18
 | 
			
		||||
        restart: always
 | 
			
		||||
        volumes:
 | 
			
		||||
            - ./data/redis:/data
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue