Compare commits
3 Commits
53869a6626
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| abcfeb7f9f | |||
| 33d67556ab | |||
| 26e8aea4da |
@@ -1,12 +1,15 @@
|
|||||||
FROM node:18-alpine
|
FROM node:18-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY backend/package*.json ./
|
COPY backend/package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies (sans --production pour installer toutes les dépendances)
|
||||||
RUN npm install --production
|
RUN npm install
|
||||||
|
|
||||||
|
# Verify dependencies are installed
|
||||||
|
RUN npm list express > /dev/null 2>&1 || (echo "ERROR: express not installed" && exit 1)
|
||||||
|
|
||||||
# Copy application code
|
# Copy application code
|
||||||
COPY backend/src ./src
|
COPY backend/src ./src
|
||||||
|
|||||||
20
README.md
20
README.md
@@ -2,10 +2,28 @@
|
|||||||
|
|
||||||
Panel d'administration web pour serveur Minecraft 1.6.4 NationsGlory.
|
Panel d'administration web pour serveur Minecraft 1.6.4 NationsGlory.
|
||||||
|
|
||||||
|
> 📌 **Note**: Pour un déploiement rapide du serveur complet (Minecraft + Web Admin), consultez le [README principal](../README.md) et utilisez le script `../deploy.sh`.
|
||||||
|
|
||||||
## 🚀 Quick Start
|
## 🚀 Quick Start
|
||||||
|
|
||||||
|
### Déploiement avec le serveur Minecraft (Recommandé)
|
||||||
|
|
||||||
|
Depuis le dossier parent :
|
||||||
```bash
|
```bash
|
||||||
# Démarrage avec Docker Compose
|
cd ..
|
||||||
|
./deploy.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
### Déploiement standalone
|
||||||
|
|
||||||
|
Si vous souhaitez déployer uniquement l'application web :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. Configuration
|
||||||
|
cp .env.example .env
|
||||||
|
nano .env # Configurez SESSION_SECRET et RCON_PASSWORD
|
||||||
|
|
||||||
|
# 2. Démarrage
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
||||||
# Le panel sera accessible sur http://localhost:4001
|
# Le panel sera accessible sur http://localhost:4001
|
||||||
|
|||||||
@@ -5,8 +5,10 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
network: host
|
||||||
container_name: webnationsglory-admin
|
container_name: webnationsglory-admin
|
||||||
env_file:
|
env_file:
|
||||||
|
- ../shared.env
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: ${NODE_ENV:-production}
|
NODE_ENV: ${NODE_ENV:-production}
|
||||||
|
|||||||
Reference in New Issue
Block a user