Archived
Private
Public Access
1
0

Merge pull request 'Switched Language + edited Docker config' (#1) from dev into main

Reviewed-on: #1
This commit is contained in:
2023-03-28 17:40:45 +02:00
2 changed files with 32 additions and 32 deletions

View File

@@ -1,11 +1,11 @@
#stage 1 #stage 1
FROM node:18 as node FROM node:18-slim as node
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN npm install RUN npm install
RUN npm run build:ssr --prod RUN npm run build:ssr --omit=dev
#stage 2 #stage 2
FROM node:18 FROM node:18-slim
COPY --from=node /app/dist /app/dist COPY --from=node /app/dist /app/dist
WORKDIR /app WORKDIR /app
CMD ["node", "dist/ProjectManager.Frontend/server/main.js"] CMD ["node", "dist/ProjectManager.Frontend/server/main.js"]

View File

@@ -1,18 +1,18 @@
# Project Manager # Project Manager
Der ProjectManager ist ein Tool zum Verwalten von mehreren PocketBase Instanzen. The ProjectManager is a tool for managing multiple PocketBase instances.
Es handelt sich hierbei um ein einfach zu benutzendes WebInterface zum Erstellen, Bearbeiten und Löschen von PocketBase Instanzen. It is an easy-to-use web interface for creating, editing and deleting PocketBase instances.
## Features ## Features
- [x] Automatische Docker Konfiguration - [x] Automatic Docker configuration
- [x] Automatisches DNS Mapping - [x] Automatic DNS Mapping
- [x] Automatische SSL-Konfiguration mithilfe von NginxProxyManager - [x] Automatic SSL configuration using NginxProxyManager
- [x] Mehrere Sprachen - [x] Multiple languages
- [x] Eigene Domains - [x] Own domains
- [ ] Projekte exportieren / importieren - [ ] Export / import projects
## Installation ## Installation
Die Installation erfolgt durch eine Docker-Compose Datei. Hierbei werden zwei Container, einer für das Backend und einer für das Frontend, gestartet. The installation is done using a Docker-Compose file. Two containers, one for the backend and one for the frontend, are started here.
Die Standartkonfiguration sieht wie folgt aus: The default configuration looks like this:
```yml ```yml
version: '3.0' version: '3.0'
@@ -43,24 +43,24 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
``` ```
### Environment Variablen ### Environment variables
| Variable | Bedeutung | | Variable | Bedeutung |
|-------------------|----------------------------------------------------------------------| |-------------------|-----------------------------------------------------------------|
| BACKEND | Die URL des Backends | | BACKEND | The backend url |
| FRONTEND | Die URL des Frontends | | FRONTEND | The frontend url |
| GENERAL__DATABASE | Der MySql Connection String | | GENERAL__DATABASE | The MySql connection string |
| GENERAL__ROOT | Ordner auf dem Hostsystem zur Speicherung der PocketBase Dateien | | GENERAL__ROOT | Folder on the host system for storing the PocketBase files |
| PROXY__ENABLE | Aktiviert die eingebaute SSL Verschlüsselung durch NginxProxyManager | | PROXY__ENABLE | Enables built-in SSL encryption with NginxProxyManager |
| PROXY__URL | Die URL für das WebInterface des NginxProxyManager | | PROXY__URL | The URL for the NginxProxyManager web interface |
| PROXY__EMAIL | E-Mail-Adresse für einen Admin Benutzer von NginxProxyManager | | PROXY__EMAIL | Email address for an admin user of NginxProxyManager |
| PROXY__PASSWORD | Passwort für einen Admin Benutzer von NginxProxyManager | | PROXY__PASSWORD | Password for an admin user of NginxProxyManager |
| PROXY__DOMAIN | Standart Domain für PocketBase instanzen ([id].api.example.com) | | PROXY__DOMAIN | Standard domain for PocketBase instances ([id].api.example.com) |
| PROXY__HOST | Hostadresse des Servers (für die reverse proxy) | | PROXY__HOST | Server host address (for the reverse proxy) |
### SourceCode bearbeiten und Docker Images selber erstellen ### Edit source code and create Docker images yourself
Falls Sie den SourceCode selbst bearbeiten wollen, steht Ihnen dieser natürlich zur Verfügung. Um das Backend im Debug Modus zu verwenden sollten sie eine If you want to edit the source code yourself, it is of course available to you. To use the backend in debug mode you should use a
``appsettings.Development.json`` Datei im Hauptverzeichnis anlegen, um dort die entsprechende Konfiguration für die Entwicklungsumgebung erstellen. ``appsettings.Development.json`` file in the main directory to create the appropriate configuration for the development environment.
Zum Debuggen empfehle ich ``npm run dev:ssr`` um das Frontend zu starten und ``dotnet run`` um das Backend zu starten. Sofern Sie mit den Bearbeitungen fertig For debugging I recommend ``npm run dev:ssr`` to start the frontend and ``dotnet run`` to start the backend. Unless you're done with the edits
sind, gibt es eine ``docker-compose.example.yml`` Datei im dem Repository die automatisch den SoruceCode neu baut und die Container startet. there is a ``docker-compose.example.yml`` file in the repository that automatically rebuilds the source code and starts the containers.
Wahlweise können Sie diese mit ``docker build`` auch selbst bauen. Alternatively, you can build them yourself with ``docker build``.