31 lines
759 B
YAML
31 lines
759 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: webnationsglory-admin
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: 4001
|
|
SERVER_DIR: /home/innotex/NationsGloryRED/NationsGlory_ServeurBuild_Red
|
|
RCON_HOST: localhost
|
|
RCON_PORT: 25575
|
|
SESSION_SECRET: your-secret-key-change-in-production
|
|
volumes:
|
|
- /home/innotex/NationsGloryRED/NationsGlory_ServeurBuild_Red:/mc-server
|
|
- web-admin-data:/app/data
|
|
ports:
|
|
- "4001:4001"
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:4001/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
web-admin-data:
|