first commit
This commit is contained in:
commit
3c0479faf0
169 files changed
+27617
No files matched your search
@@ -0,0 +1,37 @@
|
||||
# Node
|
||||
TZ=Europe/Paris
|
||||
PORT=3333
|
||||
HOST=0.0.0.0
|
||||
NODE_ENV=production
|
||||
|
||||
# App
|
||||
LOG_LEVEL=info
|
||||
# Clé secrète (chiffre les cookies et les secrets 2FA) : openssl rand -base64 24
|
||||
APP_KEY=
|
||||
APP_URL=https://big-brother.nucleus-ludus.fr
|
||||
|
||||
# Session
|
||||
SESSION_DRIVER=cookie
|
||||
|
||||
# Database (SQLite)
|
||||
DB_PATH=/data/db.sqlite3
|
||||
|
||||
# VPS paths, as seen from inside the container
|
||||
SRV_ROOT=/srv
|
||||
HOST_PROC=/host/proc
|
||||
DISK_PATH=/srv
|
||||
BACKUP_DIR=/backups
|
||||
|
||||
# Docker
|
||||
DOCKER_SOCKET=/var/run/docker.sock
|
||||
CADDY_CONTAINER=caddy
|
||||
CADDYFILE_PATH=/srv/caddy/Caddyfile
|
||||
CADDY_CONFIG_PATH=/etc/caddy/Caddyfile
|
||||
MARIADB_CONTAINER=mariadb
|
||||
|
||||
# Projects
|
||||
BASE_DOMAIN=nucleus-ludus.fr
|
||||
|
||||
# Backups (empty BACKUP_DAILY_AT = no automatic backup)
|
||||
BACKUP_DAILY_AT=03:00
|
||||
BACKUP_KEEP=7
|
||||
@@ -0,0 +1,3 @@
|
||||
big-brother.nucleus-ludus.fr {
|
||||
reverse_proxy big-brother:3333
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
# À copier dans /srv/fullstack/big-brother/docker-compose.yml sur le VPS
|
||||
# (le dépôt est cloné dans /srv/fullstack/big-brother/project).
|
||||
services:
|
||||
big-brother:
|
||||
build: ./project
|
||||
image: big-brother
|
||||
container_name: big-brother
|
||||
restart: unless-stopped
|
||||
env_file: ./.env
|
||||
volumes:
|
||||
# Base SQLite : comptes, historique, journal
|
||||
- ./data:/data
|
||||
# Accès à Docker : conteneurs, logs, redémarrages, Caddy, MariaDB
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
# Projets, Caddyfile (lecture et écriture), au même chemin que sur le VPS
|
||||
- /srv:/srv
|
||||
# Métriques du serveur (processeur, mémoire, réseau)
|
||||
- /proc:/host/proc:ro
|
||||
# Sauvegardes
|
||||
- /root/backups:/backups
|
||||
networks:
|
||||
- caddy_network
|
||||
logging:
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
networks:
|
||||
caddy_network:
|
||||
external: true
|
||||
Reference in new issue
Block a user